From e2b2fb66f32aeab0185ecb4ccc60823610f3b3c5 Mon Sep 17 00:00:00 2001 From: danielyxie Date: Wed, 27 Jun 2018 18:28:11 -0500 Subject: [PATCH] Rebalancing BN - 7 and several Source Files --- dist/engine.bundle.js | 11510 ++++++++++++++++++++-------------------- src/BitNode.js | 15 +- src/Bladeburner.js | 2 +- src/Constants.js | 8 + src/SourceFile.js | 19 +- 5 files changed, 5773 insertions(+), 5781 deletions(-) diff --git a/dist/engine.bundle.js b/dist/engine.bundle.js index 9e18e1b05..89005f4de 100644 --- a/dist/engine.bundle.js +++ b/dist/engine.bundle.js @@ -95,26 +95,26 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Player", function() { return Player; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadPlayer", function() { return loadPlayer; }); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Company_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Company.js */ 10); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CompanyManagement.js */ 42); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _Crimes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Crimes.js */ 27); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Gang_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Gang.js */ 34); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _SourceFile_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SourceFile.js */ 40); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Company__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Company */ 10); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _CompanyManagement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CompanyManagement */ 42); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Crimes */ 27); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Gang */ 34); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./SourceFile */ 40); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! decimal.js */ 23); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/IPAddress */ 15); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_20__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); @@ -202,7 +202,7 @@ function PlayerObject() { this.homeComputer = ""; //Location information - this.city = _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12; + this.city = _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12; this.location = ""; //Company Information @@ -326,15 +326,15 @@ function PlayerObject() { PlayerObject.prototype.init = function() { /* Initialize Player's home computer */ - var t_homeComp = new _Server_js__WEBPACK_IMPORTED_MODULE_12__["Server"]({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_18__["createRandomIp"])(), hostname:"home", organizationName:"Home PC", + var t_homeComp = new _Server__WEBPACK_IMPORTED_MODULE_12__["Server"]({ + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_18__["createRandomIp"])(), hostname:"home", organizationName:"Home PC", isConnectedTo:true, adminRights:true, purchasedByPlayer:true, maxRam:8 }); this.homeComputer = t_homeComp.ip; this.currentServer = t_homeComp.ip; - Object(_Server_js__WEBPACK_IMPORTED_MODULE_12__["AddToAllServers"])(t_homeComp); + Object(_Server__WEBPACK_IMPORTED_MODULE_12__["AddToAllServers"])(t_homeComp); - this.getHomeComputer().programs.push(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_5__["Programs"].NukeProgram.name); + this.getHomeComputer().programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_5__["Programs"].NukeProgram.name); } PlayerObject.prototype.prestigeAugmentation = function() { @@ -364,7 +364,7 @@ PlayerObject.prototype.prestigeAugmentation = function() { this.money = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](1000); - this.city = _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12; + this.city = _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12; this.location = ""; this.companyName = ""; @@ -443,7 +443,7 @@ PlayerObject.prototype.prestigeSourceFile = function() { this.money = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](1000); - this.city = _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12; + this.city = _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12; this.location = ""; this.companyName = ""; @@ -494,7 +494,7 @@ PlayerObject.prototype.prestigeSourceFile = function() { //Gang this.gang = null; - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_9__["resetGangs"])(); + Object(_Gang__WEBPACK_IMPORTED_MODULE_9__["resetGangs"])(); //Reset Stock market this.hasWseAccount = false; @@ -510,11 +510,11 @@ PlayerObject.prototype.prestigeSourceFile = function() { } PlayerObject.prototype.getCurrentServer = function() { - return _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][this.currentServer]; + return _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][this.currentServer]; } PlayerObject.prototype.getHomeComputer = function() { - return _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][this.homeComputer]; + return _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][this.homeComputer]; } PlayerObject.prototype.getUpgradeHomeRamCost = function() { @@ -525,7 +525,7 @@ PlayerObject.prototype.getUpgradeHomeRamCost = function() { //Calculate cost //Have cost increase by some percentage each time RAM has been upgraded const mult = Math.pow(1.58, numUpgrades); - var cost = currentRam * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamHome * mult; + var cost = currentRam * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamHome * mult; return cost; } @@ -543,7 +543,7 @@ PlayerObject.prototype.calculateSkill = function(exp, mult=1) { } PlayerObject.prototype.updateSkillLevels = function() { - this.hacking_skill = Math.max(1, Math.floor(this.calculateSkill(this.hacking_exp, this.hacking_mult) * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].HackingLevelMultiplier)); + this.hacking_skill = Math.max(1, Math.floor(this.calculateSkill(this.hacking_exp, this.hacking_mult) * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].HackingLevelMultiplier)); this.strength = this.calculateSkill(this.strength_exp, this.strength_mult); this.defense = this.calculateSkill(this.defense_exp, this.defense_mult); this.dexterity = this.calculateSkill(this.dexterity_exp, this.dexterity_mult); @@ -639,7 +639,7 @@ PlayerObject.prototype.calculatePercentMoneyHacked = function() { console.log("Percent money hacked calculated to be: " + percentMoneyHacked); if (percentMoneyHacked < 0) {return 0;} if (percentMoneyHacked > 1) {return 1;} - return percentMoneyHacked * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ManualHackMoney; + return percentMoneyHacked * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ManualHackMoney; } //Returns how much EXP the player gains on a successful hack @@ -650,7 +650,7 @@ PlayerObject.prototype.calculateExpGain = function() { if (s.baseDifficulty == null) { s.baseDifficulty = s.hackDifficulty; } - return (s.baseDifficulty * this.hacking_exp_mult * 0.3 + 3) * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].HackExpGain; + return (s.baseDifficulty * this.hacking_exp_mult * 0.3 + 3) * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].HackExpGain; } //Hack/Analyze a server. Return the amount of time the hack will take. This lets the Terminal object know how long to disable itself for @@ -762,7 +762,7 @@ PlayerObject.prototype.gainIntelligenceExp = function(exp) { if (isNaN(exp)) { console.log("ERROR: NaN passed into Player.gainIntelligenceExp()"); return; } - if (_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_11__["hasAISF"] || this.intelligence > 0) { + if (_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_11__["hasAISF"] || this.intelligence > 0) { this.intelligence_exp += exp; } else { console.log("Not gaining intelligence experience bc it hasn't been unlocked yet"); @@ -830,7 +830,7 @@ PlayerObject.prototype.finishWork = function(cancelled, sing=false) { this.gainWorkExp(); - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; company.playerReputation += (this.workRepGained); this.gainMoney(this.workMoneyGained); @@ -853,12 +853,12 @@ PlayerObject.prototype.finishWork = function(cancelled, sing=false) { } else { txt = "You worked a full shift of 8 hours!

" + txt; } - if (!sing) {Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} + if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible"; this.isWorking = false; - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); if (sing) { var res = "You worked a short shift of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + " and " + @@ -879,7 +879,7 @@ PlayerObject.prototype.finishWork = function(cancelled, sing=false) { PlayerObject.prototype.startWork = function() { this.resetWorkStatus(); this.isWorking = true; - this.workType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompany; + this.workType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompany; this.workHackExpGainRate = this.getWorkHackExpGain(); this.workStrExpGainRate = this.getWorkStrExpGain(); @@ -890,10 +890,10 @@ PlayerObject.prototype.startWork = function() { this.workRepGainRate = this.getWorkRepGain(); this.workMoneyGainRate = this.getWorkMoneyGain(); - this.timeNeededToCompleteWork = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours; + this.timeNeededToCompleteWork = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours; //Remove all old event listeners from Cancel button - var newCancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); + var newCancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); newCancelButton.innerHTML = "Cancel Work"; newCancelButton.addEventListener("click", function() { Player.finishWork(true); @@ -901,7 +901,7 @@ PlayerObject.prototype.startWork = function() { }); //Display Work In Progress Screen - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); } PlayerObject.prototype.work = function(numCycles) { @@ -916,13 +916,13 @@ PlayerObject.prototype.work = function(numCycles) { this.workRepGained += this.workRepGainRate * numCycles; this.workMoneyGained += this.workMoneyGainRate * numCycles; - var cyclesPerSec = 1000 / _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; + var cyclesPerSec = 1000 / _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; - this.timeWorked += _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; + this.timeWorked += _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; //If timeWorked == 8 hours, then finish. You can only gain 8 hours worth of exp and money - if (this.timeWorked >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours) { - var maxCycles = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].GameCyclesPer8Hours; + if (this.timeWorked >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours) { + var maxCycles = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].GameCyclesPer8Hours; this.workHackExpGained = this.workHackExpGainRate * maxCycles; this.workStrExpGained = this.workStrExpGainRate * maxCycles; this.workDefExpGained = this.workDefExpGainRate * maxCycles; @@ -935,8 +935,8 @@ PlayerObject.prototype.work = function(numCycles) { return; } - var comp = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName], companyRep = "0"; - if (comp == null || !(comp instanceof _Company_js__WEBPACK_IMPORTED_MODULE_2__["Company"])) { + var comp = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName], companyRep = "0"; + if (comp == null || !(comp instanceof _Company__WEBPACK_IMPORTED_MODULE_2__["Company"])) { console.log("ERROR: Could not find Company: " + this.companyName); } else { companyRep = comp.playerReputation; @@ -964,7 +964,7 @@ PlayerObject.prototype.work = function(numCycles) { PlayerObject.prototype.startWorkPartTime = function() { this.resetWorkStatus(); this.isWorking = true; - this.workType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompanyPartTime; + this.workType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompanyPartTime; this.workHackExpGainRate = this.getWorkHackExpGain(); this.workStrExpGainRate = this.getWorkStrExpGain(); @@ -975,9 +975,9 @@ PlayerObject.prototype.startWorkPartTime = function() { this.workRepGainRate = this.getWorkRepGain(); this.workMoneyGainRate = this.getWorkMoneyGain(); - this.timeNeededToCompleteWork = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours; + this.timeNeededToCompleteWork = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours; - var newCancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); + var newCancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); newCancelButton.innerHTML = "Stop Working"; newCancelButton.addEventListener("click", function() { Player.finishWorkPartTime(); @@ -985,7 +985,7 @@ PlayerObject.prototype.startWorkPartTime = function() { }); //Display Work In Progress Screen - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); } PlayerObject.prototype.workPartTime = function(numCycles) { @@ -1000,13 +1000,13 @@ PlayerObject.prototype.workPartTime = function(numCycles) { this.workRepGained += this.workRepGainRate * numCycles; this.workMoneyGained += this.workMoneyGainRate * numCycles; - var cyclesPerSec = 1000 / _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; + var cyclesPerSec = 1000 / _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; - this.timeWorked += _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; + this.timeWorked += _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; //If timeWorked == 8 hours, then finish. You can only gain 8 hours worth of exp and money - if (this.timeWorked >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours) { - var maxCycles = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].GameCyclesPer8Hours; + if (this.timeWorked >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer8Hours) { + var maxCycles = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].GameCyclesPer8Hours; this.workHackExpGained = this.workHackExpGainRate * maxCycles; this.workStrExpGained = this.workStrExpGainRate * maxCycles; this.workDefExpGained = this.workDefExpGainRate * maxCycles; @@ -1040,7 +1040,7 @@ PlayerObject.prototype.workPartTime = function(numCycles) { PlayerObject.prototype.finishWorkPartTime = function(sing=false) { this.gainWorkExp(); - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; company.playerReputation += (this.workRepGained); this.gainMoney(this.workMoneyGained); @@ -1057,12 +1057,12 @@ PlayerObject.prototype.finishWorkPartTime = function(sing=false) { Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workAgiExpGained, 4) + " agility exp
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workChaExpGained, 4) + " charisma exp
"; txt = "You worked for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + txt; - if (!sing) {Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} + if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible"; this.isWorking = false; - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); if (sing) { var res = "You worked for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + " and " + "earned a total of " + @@ -1084,7 +1084,7 @@ PlayerObject.prototype.finishWorkPartTime = function(sing=false) { PlayerObject.prototype.finishFactionWork = function(cancelled, sing=false) { this.gainWorkExp(); - var faction = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"][this.currentWorkFactionName]; + var faction = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"][this.currentWorkFactionName]; faction.playerReputation += (this.workRepGained); this.gainMoney(this.workMoneyGained); @@ -1101,15 +1101,15 @@ PlayerObject.prototype.finishFactionWork = function(cancelled, sing=false) { Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workDexExpGained, 4) + " dexterity exp
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workAgiExpGained, 4) + " agility exp
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workChaExpGained, 4) + " charisma exp
"; - if (!sing) {Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} + if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible"; this.isWorking = false; - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadFactionContent(); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_8__["displayFactionContent"])(faction.name); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadFactionContent(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_8__["displayFactionContent"])(faction.name); if (sing) { var res="You worked for your faction " + faction.name + " for a total of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + ". " + "You earned " + @@ -1131,15 +1131,15 @@ PlayerObject.prototype.startFactionWork = function(faction) { var favorMult = 1 + (faction.favor / 100); if (isNaN(favorMult)) {favorMult = 1;} this.workRepGainRate *= favorMult; - this.workRepGainRate *= _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkRepGain; + this.workRepGainRate *= _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkRepGain; this.isWorking = true; - this.workType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeFaction; + this.workType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeFaction; this.currentWorkFactionName = faction.name; - this.timeNeededToCompleteWork = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer20Hours; + this.timeNeededToCompleteWork = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer20Hours; - var cancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); + var cancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); cancelButton.innerHTML = "Stop Faction Work"; cancelButton.addEventListener("click", function() { Player.finishFactionWork(true); @@ -1147,16 +1147,16 @@ PlayerObject.prototype.startFactionWork = function(faction) { }); //Display Work In Progress Screen - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); } PlayerObject.prototype.startFactionHackWork = function(faction) { this.resetWorkStatus(); - this.workHackExpGainRate = .15 * this.hacking_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workRepGainRate = this.workRepGainRate = (this.hacking_skill + this.intelligence) / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel * this.faction_rep_mult; + this.workHackExpGainRate = .15 * this.hacking_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workRepGainRate = this.workRepGainRate = (this.hacking_skill + this.intelligence) / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel * this.faction_rep_mult; - this.factionWorkType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkHacking; + this.factionWorkType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkHacking; this.currentWorkFactionDescription = "carrying out hacking contracts"; this.startFactionWork(faction); @@ -1165,15 +1165,15 @@ PlayerObject.prototype.startFactionHackWork = function(faction) { PlayerObject.prototype.startFactionFieldWork = function(faction) { this.resetWorkStatus(); - this.workHackExpGainRate = .1 * this.hacking_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workStrExpGainRate = .1 * this.strength_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workDefExpGainRate = .1 * this.defense_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workDexExpGainRate = .1 * this.dexterity_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workAgiExpGainRate = .1 * this.agility_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workChaExpGainRate = .1 * this.charisma_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workHackExpGainRate = .1 * this.hacking_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workStrExpGainRate = .1 * this.strength_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workDefExpGainRate = .1 * this.defense_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workDexExpGainRate = .1 * this.dexterity_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workAgiExpGainRate = .1 * this.agility_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workChaExpGainRate = .1 * this.charisma_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; this.workRepGainRate = this.getFactionFieldWorkRepGain(); - this.factionWorkType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkField; + this.factionWorkType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkField; this.currentWorkFactionDescription = "carrying out field missions" this.startFactionWork(faction); @@ -1182,32 +1182,32 @@ PlayerObject.prototype.startFactionFieldWork = function(faction) { PlayerObject.prototype.startFactionSecurityWork = function(faction) { this.resetWorkStatus(); - this.workHackExpGainRate = 0.05 * this.hacking_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workStrExpGainRate = 0.15 * this.strength_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workDefExpGainRate = 0.15 * this.defense_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workDexExpGainRate = 0.15 * this.dexterity_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workAgiExpGainRate = 0.15 * this.agility_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; - this.workChaExpGainRate = 0.00 * this.charisma_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workHackExpGainRate = 0.05 * this.hacking_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workStrExpGainRate = 0.15 * this.strength_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workDefExpGainRate = 0.15 * this.defense_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workDexExpGainRate = 0.15 * this.dexterity_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workAgiExpGainRate = 0.15 * this.agility_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; + this.workChaExpGainRate = 0.00 * this.charisma_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkExpGain; this.workRepGainRate = this.getFactionSecurityWorkRepGain(); - this.factionWorkType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkSecurity; + this.factionWorkType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkSecurity; this.currentWorkFactionDescription = "performing security detail" this.startFactionWork(faction); } PlayerObject.prototype.workForFaction = function(numCycles) { - var faction = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"][this.currentWorkFactionName]; + var faction = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"][this.currentWorkFactionName]; //Constantly update the rep gain rate switch (this.factionWorkType) { - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkHacking: - this.workRepGainRate = (this.hacking_skill + this.intelligence) / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel * this.faction_rep_mult; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkHacking: + this.workRepGainRate = (this.hacking_skill + this.intelligence) / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel * this.faction_rep_mult; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkField: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkField: this.workRepGainRate = this.getFactionFieldWorkRepGain(); break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkSecurity: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].FactionWorkSecurity: this.workRepGainRate = this.getFactionSecurityWorkRepGain(); break; default: @@ -1218,7 +1218,7 @@ PlayerObject.prototype.workForFaction = function(numCycles) { var favorMult = 1 + (faction.favor / 100); if (isNaN(favorMult)) {favorMult = 1;} this.workRepGainRate *= favorMult; - this.workRepGainRate *= _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkRepGain; + this.workRepGainRate *= _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionWorkRepGain; this.workHackExpGained += this.workHackExpGainRate * numCycles; this.workStrExpGained += this.workStrExpGainRate * numCycles; @@ -1229,14 +1229,14 @@ PlayerObject.prototype.workForFaction = function(numCycles) { this.workRepGained += this.workRepGainRate * numCycles; this.workMoneyGained += this.workMoneyGainRate * numCycles; - var cyclesPerSec = 1000 / _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; + var cyclesPerSec = 1000 / _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; - this.timeWorked += _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; + this.timeWorked += _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; //If timeWorked == 20 hours, then finish. You can only work for the faction for 20 hours - if (this.timeWorked >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer20Hours) { - var maxCycles = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].GameCyclesPer20Hours; - this.timeWorked = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer20Hours; + if (this.timeWorked >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer20Hours) { + var maxCycles = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].GameCyclesPer20Hours; + this.timeWorked = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MillisecondsPer20Hours; this.workHackExpGained = this.workHackExpGainRate * maxCycles; this.workStrExpGained = this.workStrExpGainRate * maxCycles; this.workDefExpGained = this.workDefExpGainRate * maxCycles; @@ -1270,65 +1270,65 @@ PlayerObject.prototype.workForFaction = function(numCycles) { //Money gained per game cycle PlayerObject.prototype.getWorkMoneyGain = function() { var bn11Mult = 1; - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; - if (_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_11__["hasBn11SF"]) { + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + if (_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_11__["hasBn11SF"]) { bn11Mult = 1 + (company.favor / 100); } return this.companyPosition.baseSalary * company.salaryMultiplier * - this.work_money_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkMoney * bn11Mult; + this.work_money_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkMoney * bn11Mult; } //Hack exp gained per game cycle PlayerObject.prototype.getWorkHackExpGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; return this.companyPosition.hackingExpGain * company.expMultiplier * - this.hacking_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; + this.hacking_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; } //Str exp gained per game cycle PlayerObject.prototype.getWorkStrExpGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; return this.companyPosition.strengthExpGain * company.expMultiplier * - this.strength_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; + this.strength_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; } //Def exp gained per game cycle PlayerObject.prototype.getWorkDefExpGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; return this.companyPosition.defenseExpGain * company.expMultiplier * - this.defense_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; + this.defense_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; } //Dex exp gained per game cycle PlayerObject.prototype.getWorkDexExpGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; return this.companyPosition.dexterityExpGain * company.expMultiplier * - this.dexterity_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; + this.dexterity_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; } //Agi exp gained per game cycle PlayerObject.prototype.getWorkAgiExpGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; return this.companyPosition.agilityExpGain * company.expMultiplier * - this.agility_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; + this.agility_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; } //Charisma exp gained per game cycle PlayerObject.prototype.getWorkChaExpGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; return this.companyPosition.charismaExpGain * company.expMultiplier * - this.charisma_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; + this.charisma_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CompanyWorkExpGain; } //Reputation gained per game cycle PlayerObject.prototype.getWorkRepGain = function() { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; var jobPerformance = this.companyPosition.calculateJobPerformance(this.hacking_skill, this.strength, this.defense, this.dexterity, this.agility, this.charisma); //Intelligence provides a flat bonus to job performance - jobPerformance += (this.intelligence / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel); + jobPerformance += (this.intelligence / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel); //Update reputation gain rate to account for company favor var favorMult = 1 + (company.favor / 100); @@ -1337,22 +1337,22 @@ PlayerObject.prototype.getWorkRepGain = function() { } PlayerObject.prototype.getFactionSecurityWorkRepGain = function() { - var t = 0.9 * (this.hacking_skill / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.strength / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.defense / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.dexterity / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.agility / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel) / 4.5; + var t = 0.9 * (this.hacking_skill / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.strength / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.defense / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.dexterity / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.agility / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel) / 4.5; return t * this.faction_rep_mult; } PlayerObject.prototype.getFactionFieldWorkRepGain = function() { - var t = 0.9 * (this.hacking_skill / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.strength / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.defense / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.dexterity / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.agility / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.charisma / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + - this.intelligence / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel) / 5.5; + var t = 0.9 * (this.hacking_skill / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.strength / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.defense / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.dexterity / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.agility / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.charisma / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel + + this.intelligence / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].MaxSkillLevel) / 5.5; return t * this.faction_rep_mult; } @@ -1360,7 +1360,7 @@ PlayerObject.prototype.getFactionFieldWorkRepGain = function() { PlayerObject.prototype.startCreateProgramWork = function(programName, time, reqLevel) { this.resetWorkStatus(); this.isWorking = true; - this.workType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCreateProgram; + this.workType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCreateProgram; //Time needed to complete work affected by hacking skill (linearly based on //ratio of (your skill - required level) to MAX skill) @@ -1385,7 +1385,7 @@ PlayerObject.prototype.startCreateProgramWork = function(programName, time, reqL this.createProgramName = programName; - var cancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); + var cancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); cancelButton.innerHTML = "Cancel work on creating program"; cancelButton.addEventListener("click", function() { Player.finishCreateProgramWork(true); @@ -1393,7 +1393,7 @@ PlayerObject.prototype.startCreateProgramWork = function(programName, time, reqL }); //Display Work In Progress Screen - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); } PlayerObject.prototype.createProgramWork = function(numCycles) { @@ -1403,8 +1403,8 @@ PlayerObject.prototype.createProgramWork = function(numCycles) { skillMult = 1 + ((skillMult - 1) / 5); //The divider constant can be adjusted as necessary //Skill multiplier directly applied to "time worked" - this.timeWorked += (_engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles); - this.timeWorkedCreateProgram += (_engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles * skillMult); + this.timeWorked += (_engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles); + this.timeWorkedCreateProgram += (_engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles * skillMult); var programName = this.createProgramName; if (this.timeWorkedCreateProgram >= this.timeNeededToCompleteWork) { @@ -1421,7 +1421,7 @@ PlayerObject.prototype.createProgramWork = function(numCycles) { PlayerObject.prototype.finishCreateProgramWork = function(cancelled, sing=false) { var programName = this.createProgramName; if (cancelled === false) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You've finished creating " + programName + "!
" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You've finished creating " + programName + "!
" + "The new program can be found on your home computer."); this.getHomeComputer().programs.push(programName); @@ -1432,7 +1432,7 @@ PlayerObject.prototype.finishCreateProgramWork = function(cancelled, sing=false) } if (!cancelled) { - this.gainIntelligenceExp(this.createProgramReqLvl / _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].IntelligenceProgramBaseExpGain); + this.gainIntelligenceExp(this.createProgramReqLvl / _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].IntelligenceProgramBaseExpGain); } var mainMenu = document.getElementById("mainmenu-container"); @@ -1440,7 +1440,7 @@ PlayerObject.prototype.finishCreateProgramWork = function(cancelled, sing=false) this.isWorking = false; - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadTerminalContent(); this.resetWorkStatus(); } @@ -1448,11 +1448,11 @@ PlayerObject.prototype.finishCreateProgramWork = function(cancelled, sing=false) PlayerObject.prototype.startClass = function(costMult, expMult, className) { this.resetWorkStatus(); this.isWorking = true; - this.workType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeStudyClass; + this.workType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeStudyClass; this.className = className; - var gameCPS = 1000 / _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; + var gameCPS = 1000 / _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; //Base exp gains per second var baseStudyComputerScienceExp = 0.5; @@ -1467,43 +1467,43 @@ PlayerObject.prototype.startClass = function(costMult, expMult, className) { var cost = 0; var hackExp = 0, strExp = 0, defExp = 0, dexExp = 0, agiExp = 0, chaExp = 0; switch (className) { - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassStudyComputerScience: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassStudyComputerScience: hackExp = baseStudyComputerScienceExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructures: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructuresBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructures: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructuresBaseCost * costMult / gameCPS; hackExp = baseDataStructuresExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworks: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworksBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworks: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworksBaseCost * costMult / gameCPS; hackExp = baseNetworksExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithms: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithmsBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithms: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithmsBaseCost * costMult / gameCPS; hackExp = baseAlgorithmsExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagement: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagementBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagement: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagementBaseCost * costMult / gameCPS; chaExp = baseManagementExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadership: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadershipBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadership: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadershipBaseCost * costMult / gameCPS; chaExp = baseLeadershipExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymStrength: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymStrength: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; strExp = baseGymExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDefense: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDefense: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; defExp = baseGymExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDexterity: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDexterity: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; dexExp = baseGymExp * expMult / gameCPS; break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymAgility: - cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymAgility: + cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult / gameCPS; agiExp = baseGymExp * expMult / gameCPS; break; default: @@ -1512,18 +1512,18 @@ PlayerObject.prototype.startClass = function(costMult, expMult, className) { } this.workMoneyLossRate = cost; - this.workHackExpGainRate = hackExp * this.hacking_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain; - this.workStrExpGainRate = strExp * this.strength_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; - this.workDefExpGainRate = defExp * this.defense_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; - this.workDexExpGainRate = dexExp * this.dexterity_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; - this.workAgiExpGainRate = agiExp * this.agility_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; - this.workChaExpGainRate = chaExp * this.charisma_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; + this.workHackExpGainRate = hackExp * this.hacking_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain; + this.workStrExpGainRate = strExp * this.strength_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; + this.workDefExpGainRate = defExp * this.defense_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; + this.workDexExpGainRate = dexExp * this.dexterity_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; + this.workAgiExpGainRate = agiExp * this.agility_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; + this.workChaExpGainRate = chaExp * this.charisma_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].ClassGymExpGain;; - var cancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); - if (className == _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymStrength || - className == _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDefense || - className == _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDexterity || - className == _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymAgility) { + var cancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button"); + if (className == _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymStrength || + className == _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDefense || + className == _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDexterity || + className == _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymAgility) { cancelButton.innerHTML = "Stop training at gym"; } else { cancelButton.innerHTML = "Stop taking course"; @@ -1534,11 +1534,11 @@ PlayerObject.prototype.startClass = function(costMult, expMult, className) { }); //Display Work In Progress Screen - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); } PlayerObject.prototype.takeClass = function(numCycles) { - this.timeWorked += _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; + this.timeWorked += _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; var className = this.className; this.workHackExpGained += this.workHackExpGainRate * numCycles; @@ -1551,7 +1551,7 @@ PlayerObject.prototype.takeClass = function(numCycles) { this.workMoneyGained += this.workMoneyGainRate * numCycles; this.workMoneyGained -= this.workMoneyLossRate * numCycles; - var cyclesPerSec = 1000 / _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; + var cyclesPerSec = 1000 / _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed; var txt = document.getElementById("work-in-progress-text"); txt.innerHTML = "You have been " + className + " for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + "

" + @@ -1571,7 +1571,7 @@ PlayerObject.prototype.takeClass = function(numCycles) { //through a Singularity Netscript function PlayerObject.prototype.finishClass = function(sing=false) { this.gainWorkExp(); - this.gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].IntelligenceClassBaseExpGain * Math.round(this.timeWorked / 1000)); + this.gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].IntelligenceClassBaseExpGain * Math.round(this.timeWorked / 1000)); if (this.workMoneyGained > 0) { throw new Error("ERR: Somehow gained money while taking class"); @@ -1588,14 +1588,14 @@ PlayerObject.prototype.finishClass = function(sing=false) { Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workDexExpGained, 4) + " dexterity exp
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workAgiExpGained, 4) + " agility exp
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workChaExpGained, 4) + " charisma exp
"; - if (!sing) {Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} + if (!sing) {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])(txt);} var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible"; this.isWorking = false; - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); if (sing) { var res="After " + this.className + " for " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["convertTimeMsToTimeElapsedString"])(this.timeWorked) + ", " + "you spent a total of $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workMoneyGained * -1, 2) + ". " + @@ -1616,25 +1616,25 @@ PlayerObject.prototype.finishClass = function(sing=false) { PlayerObject.prototype.startCrime = function(hackExp, strExp, defExp, dexExp, agiExp, chaExp, money, time, singParams=null) { this.resetWorkStatus(); this.isWorking = true; - this.workType = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCrime; + this.workType = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCrime; if (singParams && singParams.workerscript) { this.committingCrimeThruSingFn = true; this.singFnCrimeWorkerScript = singParams.workerscript; } - this.workHackExpGained = hackExp * this.hacking_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; - this.workStrExpGained = strExp * this.strength_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; - this.workDefExpGained = defExp * this.defense_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; - this.workDexExpGained = dexExp * this.dexterity_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; - this.workAgiExpGained = agiExp * this.agility_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; - this.workChaExpGained = chaExp * this.charisma_exp_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; - this.workMoneyGained = money * this.crime_money_mult * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeMoney; + this.workHackExpGained = hackExp * this.hacking_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; + this.workStrExpGained = strExp * this.strength_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; + this.workDefExpGained = defExp * this.defense_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; + this.workDexExpGained = dexExp * this.dexterity_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; + this.workAgiExpGained = agiExp * this.agility_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; + this.workChaExpGained = chaExp * this.charisma_exp_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeExpGain; + this.workMoneyGained = money * this.crime_money_mult * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].CrimeMoney; this.timeNeededToCompleteWork = time; //Remove all old event listeners from Cancel button - var newCancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button") + var newCancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("work-in-progress-cancel-button") newCancelButton.innerHTML = "Cancel crime" newCancelButton.addEventListener("click", function() { Player.finishCrime(true); @@ -1642,11 +1642,11 @@ PlayerObject.prototype.startCrime = function(hackExp, strExp, defExp, dexExp, ag }); //Display Work In Progress Screen - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadWorkInProgressContent(); } PlayerObject.prototype.commitCrime = function (numCycles) { - this.timeWorked += _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; + this.timeWorked += _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._idleSpeed * numCycles; if (this.timeWorked >= this.timeNeededToCompleteWork) {this.finishCrime(false); return;} @@ -1666,18 +1666,18 @@ PlayerObject.prototype.finishCrime = function(cancelled) { //Determine crime success/failure if (!cancelled) { var statusText = ""; //TODO, unique message for each crime when you succeed - if (Object(_Crimes_js__WEBPACK_IMPORTED_MODULE_6__["determineCrimeSuccess"])(this.crimeType, this.workMoneyGained)) { + if (Object(_Crimes__WEBPACK_IMPORTED_MODULE_6__["determineCrimeSuccess"])(this.crimeType, this.workMoneyGained)) { //Handle Karma and crime statistics let crime = null; - for(const i in _Crimes_js__WEBPACK_IMPORTED_MODULE_6__["Crimes"]) { - if(_Crimes_js__WEBPACK_IMPORTED_MODULE_6__["Crimes"][i].type == this.crimeType) { - crime = _Crimes_js__WEBPACK_IMPORTED_MODULE_6__["Crimes"][i]; + for(const i in _Crimes__WEBPACK_IMPORTED_MODULE_6__["Crimes"]) { + if(_Crimes__WEBPACK_IMPORTED_MODULE_6__["Crimes"][i].type == this.crimeType) { + crime = _Crimes__WEBPACK_IMPORTED_MODULE_6__["Crimes"][i]; break; } } if(crime == null) { console.log(this.crimeType); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("ERR: Unrecognized crime type. This is probably a bug please contact the developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("ERR: Unrecognized crime type. This is probably a bug please contact the developer"); } this.karma -= crime.karma; this.numPeopleKilled += crime.kills; @@ -1704,7 +1704,7 @@ PlayerObject.prototype.finishCrime = function(cancelled) { Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workChaExpGained, 3) + " cha exp."); } } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Crime successful!

" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Crime successful!

" + "You gained:
"+ "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workMoneyGained, 2) + "
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workHackExpGained, 4) + " hacking experience
" + @@ -1734,7 +1734,7 @@ PlayerObject.prototype.finishCrime = function(cancelled) { Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workChaExpGained, 3) + " cha exp."); } } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Crime failed!

" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Crime failed!

" + "You gained:
"+ Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workHackExpGained, 4) + " hacking experience
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.workStrExpGained, 4) + " strength experience
" + @@ -1753,7 +1753,7 @@ PlayerObject.prototype.finishCrime = function(cancelled) { mainMenu.style.visibility = "visible"; this.isWorking = false; this.resetWorkStatus(); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); } //Cancels the player's current "work" assignment and gives the proper rewards @@ -1762,22 +1762,22 @@ PlayerObject.prototype.singularityStopWork = function() { if (!this.isWorking) {return "";} var res; //Earnings text for work switch (this.workType) { - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeStudyClass: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeStudyClass: res = this.finishClass(true); break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompany: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompany: res = this.finishWork(true, true); break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompanyPartTime: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCompanyPartTime: res = this.finishWorkPartTime(true); break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeFaction: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeFaction: res = this.finishFactionWork(true, true); break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCreateProgram: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCreateProgram: res = this.finishCreateProgramWork(true, true); break; - case _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCrime: + case _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].WorkTypeCrime: res = this.finishCrime(true); break; default: @@ -1800,10 +1800,10 @@ PlayerObject.prototype.takeDamage = function(amt) { } PlayerObject.prototype.hospitalize = function() { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You were in critical condition! You were taken to the hospital where " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You were in critical condition! You were taken to the hospital where " + "luckily they were able to save your life. You were charged $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.max_hp * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp, 2)); - this.loseMoney(this.max_hp * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_21__["formatNumber"])(this.max_hp * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp, 2)); + this.loseMoney(this.max_hp * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp); this.hp = this.max_hp; } @@ -1814,29 +1814,29 @@ PlayerObject.prototype.hospitalize = function() { PlayerObject.prototype.applyForJob = function(entryPosType, sing=false) { var currCompany = ""; if (this.companyName != "") { - currCompany = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + currCompany = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; } var currPositionName = ""; if (this.companyPosition != "") { currPositionName = this.companyPosition.positionName; } - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (sing && !(company instanceof _Company_js__WEBPACK_IMPORTED_MODULE_2__["Company"])) { + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (sing && !(company instanceof _Company__WEBPACK_IMPORTED_MODULE_2__["Company"])) { return "ERROR: Invalid company name: " + this.location + ". applyToCompany() failed"; } var pos = entryPosType; if (!this.isQualified(company, pos)) { - var reqText = Object(_Company_js__WEBPACK_IMPORTED_MODULE_2__["getJobRequirementText"])(company, pos); + var reqText = Object(_Company__WEBPACK_IMPORTED_MODULE_2__["getJobRequirementText"])(company, pos); if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position
" + reqText); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position
" + reqText); return; } while (true) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].Debug) {console.log("Determining qualification for next Company Position");} - var newPos = Object(_Company_js__WEBPACK_IMPORTED_MODULE_2__["getNextCompanyPosition"])(pos); + if (_engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].Debug) {console.log("Determining qualification for next Company Position");} + var newPos = Object(_Company__WEBPACK_IMPORTED_MODULE_2__["getNextCompanyPosition"])(pos); if (newPos == null) {break;} //Check if this company has this position @@ -1855,17 +1855,17 @@ PlayerObject.prototype.applyForJob = function(entryPosType, sing=false) { if (currCompany != "") { if (currCompany.companyName == company.companyName && pos.positionName == currPositionName) { - var nextPos = Object(_Company_js__WEBPACK_IMPORTED_MODULE_2__["getNextCompanyPosition"])(pos); + var nextPos = Object(_Company__WEBPACK_IMPORTED_MODULE_2__["getNextCompanyPosition"])(pos); if (nextPos == null) { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You are already at the highest position for your field! No promotion available"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You are already at the highest position for your field! No promotion available"); } else if (company.hasPosition(nextPos)) { if (sing) {return false;} - var reqText = Object(_Company_js__WEBPACK_IMPORTED_MODULE_2__["getJobRequirementText"])(company, nextPos); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unfortunately, you do not qualify for a promotion
" + reqText); + var reqText = Object(_Company__WEBPACK_IMPORTED_MODULE_2__["getJobRequirementText"])(company, nextPos); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unfortunately, you do not qualify for a promotion
" + reqText); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You are already at the highest position for your field! No promotion available"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("You are already at the highest position for your field! No promotion available"); } return; //Same job, do nothing } @@ -1896,22 +1896,22 @@ PlayerObject.prototype.applyForJob = function(entryPosType, sing=false) { if (leaveCompany) { if (sing) {return true;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations! You were offered a new job at " + this.companyName + " as a " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations! You were offered a new job at " + this.companyName + " as a " + pos.positionName + "!
" + "You lost 1000 reputation at your old company " + oldCompanyName + " because you left."); } else { if (sing) {return true;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations! You were offered a new job at " + this.companyName + " as a " + pos.positionName + "!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations! You were offered a new job at " + this.companyName + " as a " + pos.positionName + "!"); } - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); } //Returns your next position at a company given the field (software, business, etc.) PlayerObject.prototype.getNextCompanyPosition = function(company, entryPosType) { var currCompany = null; if (this.companyName != "") { - currCompany = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + currCompany = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; } //Not employed at this company, so return the entry position @@ -1932,7 +1932,7 @@ PlayerObject.prototype.getNextCompanyPosition = function(company, entryPosType) (this.companyPosition.isSoftwareConsultantJob() && entryPosType.isSoftwareConsultantJob()) || (this.companyPosition.isBusinessConsultantJob() && entryPosType.isBusinessConsultantJob()) || (this.companyPosition.isPartTimeJob() && entryPosType.isPartTimeJob())) { - return Object(_Company_js__WEBPACK_IMPORTED_MODULE_2__["getNextCompanyPosition"])(this.companyPosition); + return Object(_Company__WEBPACK_IMPORTED_MODULE_2__["getNextCompanyPosition"])(this.companyPosition); } @@ -1940,63 +1940,63 @@ PlayerObject.prototype.getNextCompanyPosition = function(company, entryPosType) } PlayerObject.prototype.applyForSoftwareJob = function(sing=false) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SoftwareIntern, sing); + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SoftwareIntern, sing); } PlayerObject.prototype.applyForSoftwareConsultantJob = function(sing=false) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SoftwareConsultant, sing); + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SoftwareConsultant, sing); } PlayerObject.prototype.applyForItJob = function(sing=false) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].ITIntern, sing); + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].ITIntern, sing); } PlayerObject.prototype.applyForSecurityEngineerJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SecurityEngineer)) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SecurityEngineer, sing); + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SecurityEngineer)) { + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SecurityEngineer, sing); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } PlayerObject.prototype.applyForNetworkEngineerJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].NetworkEngineer)) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].NetworkEngineer, sing); + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].NetworkEngineer)) { + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].NetworkEngineer, sing); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } PlayerObject.prototype.applyForBusinessJob = function(sing=false) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].BusinessIntern, sing); + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].BusinessIntern, sing); } PlayerObject.prototype.applyForBusinessConsultantJob = function(sing=false) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].BusinessConsultant, sing); + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].BusinessConsultant, sing); } PlayerObject.prototype.applyForSecurityJob = function(sing=false) { //TODO If case for POlice departments - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SecurityGuard, sing); + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].SecurityGuard, sing); } PlayerObject.prototype.applyForAgentJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].FieldAgent)) { - return this.applyForJob(_Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].FieldAgent, sing); + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].FieldAgent)) { + return this.applyForJob(_Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].FieldAgent, sing); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } PlayerObject.prototype.applyForEmployeeJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Employee)) { + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Employee)) { if (this.firstJobRecvd === false) { this.firstJobRecvd = true; document.getElementById("job-tab").style.display = "list-item"; @@ -2004,19 +2004,19 @@ PlayerObject.prototype.applyForEmployeeJob = function(sing=false) { document.getElementById("world-menu-header").click(); } this.companyName = company.companyName; - this.companyPosition = _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Employee; + this.companyPosition = _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Employee; if (sing) {return true;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed at " + this.companyName); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed at " + this.companyName); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } PlayerObject.prototype.applyForPartTimeEmployeeJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeEmployee)) { + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeEmployee)) { if (this.firstJobRecvd === false) { this.firstJobRecvd = true; document.getElementById("job-tab").style.display = "list-item"; @@ -2024,19 +2024,19 @@ PlayerObject.prototype.applyForPartTimeEmployeeJob = function(sing=false) { document.getElementById("world-menu-header").click(); } this.companyName = company.companyName; - this.companyPosition = _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeEmployee; + this.companyPosition = _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeEmployee; if (sing) {return true;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed part-time at " + this.companyName); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed part-time at " + this.companyName); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } PlayerObject.prototype.applyForWaiterJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Waiter)) { + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Waiter)) { if (this.firstJobRecvd === false) { this.firstJobRecvd = true; document.getElementById("job-tab").style.display = "list-item"; @@ -2044,19 +2044,19 @@ PlayerObject.prototype.applyForWaiterJob = function(sing=false) { document.getElementById("world-menu-header").click(); } this.companyName = company.companyName; - this.companyPosition = _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Waiter; + this.companyPosition = _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].Waiter; if (sing) {return true;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed as a waiter at " + this.companyName); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed as a waiter at " + this.companyName); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } PlayerObject.prototype.applyForPartTimeWaiterJob = function(sing=false) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to - if (this.isQualified(company, _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeWaiter)) { + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.location]; //Company being applied to + if (this.isQualified(company, _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeWaiter)) { if (this.firstJobRecvd === false) { this.firstJobRecvd = true; document.getElementById("job-tab").style.display = "list-item"; @@ -2064,13 +2064,13 @@ PlayerObject.prototype.applyForPartTimeWaiterJob = function(sing=false) { document.getElementById("world-menu-header").click(); } this.companyName = company.companyName; - this.companyPosition = _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeWaiter; + this.companyPosition = _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].PartTimeWaiter; if (sing) {return true;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed as a part-time waiter at " + this.companyName); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Congratulations, you are now employed as a part-time waiter at " + this.companyName); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadLocationContent(); } else { if (sing) {return false;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_16__["dialogBoxCreate"])("Unforunately, you do not qualify for this position"); } } @@ -2110,19 +2110,19 @@ PlayerObject.prototype.reapplyAllAugmentations = function(resetMultipliers=true) } var augName = this.augmentations[i].name; - var aug = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName]; + var aug = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName]; if (aug == null) { console.log("WARNING: Invalid augmentation name"); continue; } aug.owned = true; - if (aug.name == _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { + if (aug.name == _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { for (let j = 0; j < aug.level; ++j) { - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["applyAugmentation"])(this.augmentations[i], true); + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_0__["applyAugmentation"])(this.augmentations[i], true); } continue; } - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["applyAugmentation"])(this.augmentations[i], true); + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_0__["applyAugmentation"])(this.augmentations[i], true); } } @@ -2133,12 +2133,12 @@ PlayerObject.prototype.reapplyAllSourceFiles = function() { for (let i = 0; i < this.sourceFiles.length; ++i) { var srcFileKey = "SourceFile" + this.sourceFiles[i].n; - var sourceFileObject = _SourceFile_js__WEBPACK_IMPORTED_MODULE_14__["SourceFiles"][srcFileKey]; + var sourceFileObject = _SourceFile__WEBPACK_IMPORTED_MODULE_14__["SourceFiles"][srcFileKey]; if (sourceFileObject == null) { console.log("ERROR: Invalid source file number: " + this.sourceFiles[i].n); continue; } - Object(_SourceFile_js__WEBPACK_IMPORTED_MODULE_14__["applySourceFile"])(this.sourceFiles[i]); + Object(_SourceFile__WEBPACK_IMPORTED_MODULE_14__["applySourceFile"])(this.sourceFiles[i]); } } @@ -2151,14 +2151,14 @@ PlayerObject.prototype.checkForFactionInvitations = function() { var numAugmentations = this.augmentations.length; - var company = _Company_js__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; + var company = _Company__WEBPACK_IMPORTED_MODULE_2__["Companies"][this.companyName]; var companyRep = 0; if (company != null) { companyRep = company.playerReputation; } //Illuminati - var illuminatiFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Illuminati"]; + var illuminatiFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Illuminati"]; if (!illuminatiFac.isBanned && !illuminatiFac.isMember && !illuminatiFac.alreadyInvited && numAugmentations >= 30 && this.money.gte(150000000000) && @@ -2169,7 +2169,7 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //Daedalus - var daedalusFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Daedalus"]; + var daedalusFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Daedalus"]; if (!daedalusFac.isBanned && !daedalusFac.isMember && !daedalusFac.alreadyInvited && numAugmentations >= 30 && this.money.gte(100000000000) && @@ -2180,7 +2180,7 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //The Covenant - var covenantFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Covenant"]; + var covenantFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Covenant"]; if (!covenantFac.isBanned && !covenantFac.isMember && !covenantFac.alreadyInvited && numAugmentations >= 30 && this.money.gte(75000000000) && @@ -2193,88 +2193,88 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //ECorp - var ecorpFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["ECorp"]; + var ecorpFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["ECorp"]; if (!ecorpFac.isBanned && !ecorpFac.isMember && !ecorpFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumECorp && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumECorp && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(ecorpFac); } //MegaCorp - var megacorpFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["MegaCorp"]; + var megacorpFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["MegaCorp"]; if (!megacorpFac.isBanned && !megacorpFac.isMember && !megacorpFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12MegaCorp && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12MegaCorp && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(megacorpFac); } //Bachman & Associates - var bachmanandassociatesFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Bachman & Associates"]; + var bachmanandassociatesFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Bachman & Associates"]; if (!bachmanandassociatesFac.isBanned && !bachmanandassociatesFac.isMember && !bachmanandassociatesFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumBachmanAndAssociates && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumBachmanAndAssociates && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(bachmanandassociatesFac); } //Blade Industries - var bladeindustriesFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Blade Industries"]; + var bladeindustriesFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Blade Industries"]; if (!bladeindustriesFac.isBanned && !bladeindustriesFac.isMember && !bladeindustriesFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12BladeIndustries && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12BladeIndustries && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(bladeindustriesFac); } //NWO - var nwoFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["NWO"]; + var nwoFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["NWO"]; if (!nwoFac.isBanned && !nwoFac.isMember && !nwoFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].VolhavenNWO && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].VolhavenNWO && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(nwoFac); } //Clarke Incorporated - var clarkeincorporatedFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Clarke Incorporated"]; + var clarkeincorporatedFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Clarke Incorporated"]; if (!clarkeincorporatedFac.isBanned && !clarkeincorporatedFac.isMember && !clarkeincorporatedFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumClarkeIncorporated && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumClarkeIncorporated && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(clarkeincorporatedFac); } //OmniTek Incorporated - var omnitekincorporatedFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["OmniTek Incorporated"]; + var omnitekincorporatedFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["OmniTek Incorporated"]; if (!omnitekincorporatedFac.isBanned && !omnitekincorporatedFac.isMember && !omnitekincorporatedFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].VolhavenOmniTekIncorporated && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].VolhavenOmniTekIncorporated && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(omnitekincorporatedFac); } //Four Sigma - var foursigmaFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Four Sigma"]; + var foursigmaFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Four Sigma"]; if (!foursigmaFac.isBanned && !foursigmaFac.isMember && !foursigmaFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12FourSigma && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12FourSigma && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(foursigmaFac); } //KuaiGong International - var kuaigonginternationalFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["KuaiGong International"]; + var kuaigonginternationalFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["KuaiGong International"]; if (!kuaigonginternationalFac.isBanned && !kuaigonginternationalFac.isMember && !kuaigonginternationalFac.alreadyInvited && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].ChongqingKuaiGongInternational && companyRep >= _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].ChongqingKuaiGongInternational && companyRep >= _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].CorpFactionRepRequirement) { invitedFactions.push(kuaigonginternationalFac); } //Fulcrum Secret Technologies - If u've unlocked fulcrum secret technolgoies server and have a high rep with the company - var fulcrumsecrettechonologiesFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Fulcrum Secret Technologies"]; - var fulcrumSecretServer = _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].FulcrumSecretTechnologies]]; + var fulcrumsecrettechonologiesFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Fulcrum Secret Technologies"]; + var fulcrumSecretServer = _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].FulcrumSecretTechnologies]]; if (fulcrumSecretServer == null) { console.log("ERROR: Could not find Fulcrum Secret Technologies Server"); } else { if (!fulcrumsecrettechonologiesFac.isBanned && !fulcrumsecrettechonologiesFac.isMember && !fulcrumsecrettechonologiesFac.alreadyInvited && fulcrumSecretServer.manuallyHacked && - this.companyName == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumFulcrumTechnologies && companyRep >= 250000) { + this.companyName == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].AevumFulcrumTechnologies && companyRep >= 250000) { invitedFactions.push(fulcrumsecrettechonologiesFac); } } //BitRunners - var bitrunnersFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["BitRunners"]; + var bitrunnersFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["BitRunners"]; var homeComp = this.getHomeComputer(); - var bitrunnersServer = _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].BitRunnersServer]]; + var bitrunnersServer = _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].BitRunnersServer]]; if (bitrunnersServer == null) { console.log("ERROR: Could not find BitRunners Server"); } else if (!bitrunnersFac.isBanned && !bitrunnersFac.isMember && bitrunnersServer.manuallyHacked && @@ -2283,8 +2283,8 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //The Black Hand - var theblackhandFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Black Hand"]; - var blackhandServer = _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].TheBlackHandServer]]; + var theblackhandFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Black Hand"]; + var blackhandServer = _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].TheBlackHandServer]]; if (blackhandServer == null) { console.log("ERROR: Could not find The Black Hand Server"); } else if (!theblackhandFac.isBanned && !theblackhandFac.isMember && blackhandServer.manuallyHacked && @@ -2293,8 +2293,8 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //NiteSec - var nitesecFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["NiteSec"]; - var nitesecServer = _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].NiteSecServer]]; + var nitesecFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["NiteSec"]; + var nitesecServer = _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].NiteSecServer]]; if (nitesecServer == null) { console.log("ERROR: Could not find NiteSec Server"); } else if (!nitesecFac.isBanned && !nitesecFac.isMember && nitesecServer.manuallyHacked && @@ -2303,99 +2303,99 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //Chongqing - var chongqingFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Chongqing"]; + var chongqingFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Chongqing"]; if (!chongqingFac.isBanned && !chongqingFac.isMember && !chongqingFac.alreadyInvited && - this.money.gte(20000000) && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing) { + this.money.gte(20000000) && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing) { invitedFactions.push(chongqingFac); } //Sector-12 - var sector12Fac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Sector-12"]; + var sector12Fac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Sector-12"]; if (!sector12Fac.isBanned && !sector12Fac.isMember && !sector12Fac.alreadyInvited && - this.money.gte(15000000) && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12) { + this.money.gte(15000000) && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12) { invitedFactions.push(sector12Fac); } //New Tokyo - var newtokyoFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["New Tokyo"]; + var newtokyoFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["New Tokyo"]; if (!newtokyoFac.isBanned && !newtokyoFac.isMember && !newtokyoFac.alreadyInvited && - this.money.gte(20000000) && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].NewTokyo) { + this.money.gte(20000000) && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].NewTokyo) { invitedFactions.push(newtokyoFac); } //Aevum - var aevumFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Aevum"]; + var aevumFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Aevum"]; if (!aevumFac.isBanned && !aevumFac.isMember && !aevumFac.alreadyInvited && - this.money.gte(40000000) && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Aevum) { + this.money.gte(40000000) && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Aevum) { invitedFactions.push(aevumFac); } //Ishima - var ishimaFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Ishima"]; + var ishimaFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Ishima"]; if (!ishimaFac.isBanned && !ishimaFac.isMember && !ishimaFac.alreadyInvited && - this.money.gte(30000000) && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Ishima) { + this.money.gte(30000000) && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Ishima) { invitedFactions.push(ishimaFac); } //Volhaven - var volhavenFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Volhaven"]; + var volhavenFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Volhaven"]; if (!volhavenFac.isBanned && !volhavenFac.isMember && !volhavenFac.alreadyInvited && - this.money.gte(50000000) && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Volhaven) { + this.money.gte(50000000) && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Volhaven) { invitedFactions.push(volhavenFac); } //Speakers for the Dead - var speakersforthedeadFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Speakers for the Dead"]; + var speakersforthedeadFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Speakers for the Dead"]; if (!speakersforthedeadFac.isBanned && !speakersforthedeadFac.isMember && !speakersforthedeadFac.alreadyInvited && this.hacking_skill >= 100 && this.strength >= 300 && this.defense >= 300 && this.dexterity >= 300 && this.agility >= 300 && this.numPeopleKilled >= 30 && - this.karma <= -45 && this.companyName != _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12CIA && - this.companyName != _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12NSA) { + this.karma <= -45 && this.companyName != _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12CIA && + this.companyName != _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12NSA) { invitedFactions.push(speakersforthedeadFac); } //The Dark Army - var thedarkarmyFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Dark Army"]; + var thedarkarmyFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Dark Army"]; if (!thedarkarmyFac.isBanned && !thedarkarmyFac.isMember && !thedarkarmyFac.alreadyInvited && this.hacking_skill >= 300 && this.strength >= 300 && this.defense >= 300 && - this.dexterity >= 300 && this.agility >= 300 && this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing && - this.numPeopleKilled >= 5 && this.karma <= -45 && this.companyName != _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12CIA && - this.companyName != _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12NSA) { + this.dexterity >= 300 && this.agility >= 300 && this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing && + this.numPeopleKilled >= 5 && this.karma <= -45 && this.companyName != _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12CIA && + this.companyName != _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12NSA) { invitedFactions.push(thedarkarmyFac); } //The Syndicate - var thesyndicateFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Syndicate"]; + var thesyndicateFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["The Syndicate"]; if (!thesyndicateFac.isBanned && !thesyndicateFac.isMember && !thesyndicateFac.alreadyInvited && this.hacking_skill >= 200 && this.strength >= 200 && this.defense >= 200 && this.dexterity >= 200 && this.agility >= 200 && - (this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Aevum || this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12) && + (this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Aevum || this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12) && this.money.gte(10000000) && this.karma <= -90 && - this.companyName != _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12CIA && this.companyName != _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12NSA) { + this.companyName != _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12CIA && this.companyName != _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Sector12NSA) { invitedFactions.push(thesyndicateFac); } //Silhouette - var silhouetteFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Silhouette"]; + var silhouetteFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Silhouette"]; if (!silhouetteFac.isBanned && !silhouetteFac.isMember && !silhouetteFac.alreadyInvited && - (this.companyPosition.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].CTO.positionName || - this.companyPosition.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].CFO.positionName || - this.companyPosition.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].CEO.positionName) && + (this.companyPosition.positionName == _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].CTO.positionName || + this.companyPosition.positionName == _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].CFO.positionName || + this.companyPosition.positionName == _Company__WEBPACK_IMPORTED_MODULE_2__["CompanyPositions"].CEO.positionName) && this.money.gte(15000000) && this.karma <= -22) { invitedFactions.push(silhouetteFac); } //Tetrads - var tetradsFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Tetrads"]; + var tetradsFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Tetrads"]; if (!tetradsFac.isBanned && !tetradsFac.isMember && !tetradsFac.alreadyInvited && - (this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing || this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].NewTokyo || - this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Ishima) && this.strength >= 75 && this.defense >= 75 && + (this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing || this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].NewTokyo || + this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Ishima) && this.strength >= 75 && this.defense >= 75 && this.dexterity >= 75 && this.agility >= 75 && this.karma <= -18) { invitedFactions.push(tetradsFac); } //SlumSnakes - var slumsnakesFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Slum Snakes"]; + var slumsnakesFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Slum Snakes"]; if (!slumsnakesFac.isBanned && !slumsnakesFac.isMember && !slumsnakesFac.alreadyInvited && this.strength >= 30 && this.defense >= 30 && this.dexterity >= 30 && this.agility >= 30 && this.karma <= -9 && this.money.gte(1000000)) { @@ -2403,7 +2403,7 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //Netburners - var netburnersFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Netburners"]; + var netburnersFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Netburners"]; var totalHacknetRam = 0; var totalHacknetCores = 0; var totalHacknetLevels = 0; @@ -2419,17 +2419,17 @@ PlayerObject.prototype.checkForFactionInvitations = function() { } //Tian Di Hui - var tiandihuiFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Tian Di Hui"]; + var tiandihuiFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["Tian Di Hui"]; if (!tiandihuiFac.isBanned && !tiandihuiFac.isMember && !tiandihuiFac.alreadyInvited && this.money.gte(1000000) && this.hacking_skill >= 50 && - (this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing || this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].NewTokyo || - this.city == _Location_js__WEBPACK_IMPORTED_MODULE_10__["Locations"].Ishima)) { + (this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Chongqing || this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].NewTokyo || + this.city == _Location__WEBPACK_IMPORTED_MODULE_10__["Locations"].Ishima)) { invitedFactions.push(tiandihuiFac); } //CyberSec - var cybersecFac = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]["CyberSec"]; - var cybersecServer = _Server_js__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].CyberSecServer]]; + var cybersecFac = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]["CyberSec"]; + var cybersecServer = _Server__WEBPACK_IMPORTED_MODULE_12__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerNames"].CyberSecServer]]; if (cybersecServer == null) { console.log("ERROR: Could not find CyberSec Server"); } else if (!cybersecFac.isBanned && !cybersecFac.isMember && cybersecServer.manuallyHacked && @@ -2445,11 +2445,11 @@ PlayerObject.prototype.checkForFactionInvitations = function() { //Returns true if Player is in a gang and false otherwise PlayerObject.prototype.inGang = function() { if (this.gang == null || this.gang == undefined) {return false;} - return (this.gang instanceof _Gang_js__WEBPACK_IMPORTED_MODULE_9__["Gang"]); + return (this.gang instanceof _Gang__WEBPACK_IMPORTED_MODULE_9__["Gang"]); } PlayerObject.prototype.startGang = function(factionName, hacking) { - this.gang = new _Gang_js__WEBPACK_IMPORTED_MODULE_9__["Gang"](factionName, hacking); + this.gang = new _Gang__WEBPACK_IMPORTED_MODULE_9__["Gang"](factionName, hacking); } /************* BitNodes **************/ @@ -2473,19 +2473,19 @@ PlayerObject.prototype.queueAugmentation = function(name) { } this.firstAugPurchased = true; - this.queuedAugmentations.push(new _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["PlayerOwnedAugmentation"](name)); + this.queuedAugmentations.push(new _Augmentations__WEBPACK_IMPORTED_MODULE_0__["PlayerOwnedAugmentation"](name)); } /* Functions for saving and loading the Player data */ function loadPlayer(saveString) { - Player = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_19__["Reviver"]); + Player = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__["Reviver"]); //Parse Decimal.js objects Player.money = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](Player.money); Player.total_money = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](Player.total_money); Player.lifetime_money = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](Player.lifetime_money); - if (Player.corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_4__["Corporation"]) { + if (Player.corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_4__["Corporation"]) { Player.corporation.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](Player.corporation.funds); Player.corporation.revenue = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](Player.corporation.revenue); Player.corporation.expenses = new decimal_js__WEBPACK_IMPORTED_MODULE_15__["default"](Player.corporation.expenses); @@ -2501,14 +2501,14 @@ function loadPlayer(saveString) { } PlayerObject.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_19__["Generic_toJSON"])("PlayerObject", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__["Generic_toJSON"])("PlayerObject", this); } PlayerObject.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_19__["Generic_fromJSON"])(PlayerObject, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__["Generic_fromJSON"])(PlayerObject, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_19__["Reviver"].constructors.PlayerObject = PlayerObject; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_19__["Reviver"].constructors.PlayerObject = PlayerObject; let Player = new PlayerObject(); @@ -2545,7 +2545,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getElementById", function() { return getElementById; }); /* harmony import */ var _StringHelperFunctions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./StringHelperFunctions */ 2); /* harmony import */ var _StringHelperFunctions__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _DialogBox_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DialogBox.js */ 7); +/* harmony import */ var _DialogBox__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./DialogBox */ 7); //General helper functions @@ -2792,7 +2792,7 @@ function powerOfTwo(n) { } function exceptionAlert(e) { - Object(_DialogBox_js__WEBPACK_IMPORTED_MODULE_1__["dialogBoxCreate"])("Caught an exception: " + e + "

" + + Object(_DialogBox__WEBPACK_IMPORTED_MODULE_1__["dialogBoxCreate"])("Caught an exception: " + e + "

" + "Filename: " + e.fileName + "

" + "Line Number: " + e.lineNumber + "

" + "This is a bug, please report to game developer with this " + @@ -2831,7 +2831,7 @@ function createProgressBarText(params={}) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -const DialogBox_js_1 = __webpack_require__(/*! ./DialogBox.js */ 7); +const DialogBox_1 = __webpack_require__(/*! ./DialogBox */ 7); // Netburner String helper functions // Replaces the character at an index with a new character function replaceAt(base, index, character) { @@ -2950,7 +2950,7 @@ function numNetscriptOperators(text) { numOccurrences(text, "!="); if (isNaN(total)) { const message = "ERROR in counting number of operators in script. This is a bug, please report to game developer"; - DialogBox_js_1.dialogBoxCreate(message, false); + DialogBox_1.dialogBoxCreate(message, false); return 0; } return total; @@ -3483,6 +3483,14 @@ let CONSTANTS = { LatestUpdate: "v0.39.1
" + + "* Bladeburner Rank gain in BN-7 is now reduced by 40% instead of 50%
" + + "* Quadrupled the amount of money gained from Bladeburner contracts
" + + "* Doubled the effects of Source-File 5. Now gives 8%, 12%, and 14% increase to all hacking multipliers " + + "at levels 1, 2, and 3, respectively (increased from 4%/6%, 7%)
" + + "* Increased the effect of Source-File 8. It now gives a 12%, 18% and 21% to your hacking growth multiplier " + + "at levels 1, 2, and 3, respectively (increased from 8%, 12%, 14%)
" + + "* The effect of Source-File 12 is now additive with itself, rather than multiplicative. This means " + + "that level N of Source-File 12 now increases all multipliers by N%
" + "* The setting to suppress the confirmation box when purchasing Augmentations was moved into the main Options menu (by Github user hydroflame)
" @@ -3503,27 +3511,27 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Locations", function() { return Locations; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayLocationContent", function() { return displayLocationContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initLocationButtons", function() { return initLocationButtons; }); -/* harmony import */ var _Bladeburner_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bladeburner.js */ 26); -/* harmony import */ var _Company_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company.js */ 10); -/* harmony import */ var _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CompanyManagement.js */ 42); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _Crimes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Crimes.js */ 27); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Infiltration_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Infiltration.js */ 120); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _ServerPurchases_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ServerPurchases.js */ 85); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Bladeburner */ 26); +/* harmony import */ var _Company__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company */ 10); +/* harmony import */ var _CompanyManagement__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CompanyManagement */ 42); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Crimes */ 27); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Infiltration__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Infiltration */ 120); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _ServerPurchases__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ServerPurchases */ 85); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/IPAddress */ 15); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_16__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -3633,8 +3641,8 @@ var Locations = { } function displayLocationContent() { - if (_engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].debug) { - console.log("displayLocationContent() called with location " + _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location) + if (_engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].debug) { + console.log("displayLocationContent() called with location " + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location) } var returnToWorld = document.getElementById("location-return-to-world-button"); @@ -3657,7 +3665,7 @@ function displayLocationContent() { var waiterJob = document.getElementById("location-waiter-job"); var waiterPartTimeJob = document.getElementById("location-parttime-waiter-job"); - var work = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-work"); + var work = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-work"); var jobTitle = document.getElementById("location-job-title"); var jobReputation = document.getElementById("location-job-reputation"); @@ -3700,7 +3708,7 @@ function displayLocationContent() { var travelToIshima = document.getElementById("location-travel-to-ishima"); var travelToVolhaven = document.getElementById("location-travel-to-volhaven"); - var infiltrate = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-infiltrate"); + var infiltrate = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-infiltrate"); var hospitalTreatment = document.getElementById("location-hospital-treatment"); @@ -3722,10 +3730,10 @@ function displayLocationContent() { var nsaBladeburner = document.getElementById("location-nsa-bladeburner"); - var loc = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location; + var loc = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location; returnToWorld.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadWorldContent(); + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadWorldContent(); }); locationName.innerHTML = loc; @@ -3789,20 +3797,20 @@ function displayLocationContent() { purchaseHomeRam.style.display = "none"; purchaseHomeCores.style.display = "none"; - purchase2gb.innerHTML = "Purchase 2GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(2*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase4gb.innerHTML = "Purchase 4GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(4*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase8gb.innerHTML = "Purchase 8GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(8*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase16gb.innerHTML = "Purchase 16GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(16*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase32gb.innerHTML = "Purchase 32GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(32*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase64gb.innerHTML = "Purchase 64GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(64*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase128gb.innerHTML = "Purchase 128GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(128*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase256gb.innerHTML = "Purchase 256GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(256*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase512gb.innerHTML = "Purchase 512GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(512*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - purchase1tb.innerHTML = "Purchase 1TB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(1024*_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); - if (!_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_12__["SpecialServerIps"].hasOwnProperty("Darkweb Server")) { + purchase2gb.innerHTML = "Purchase 2GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(2*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase4gb.innerHTML = "Purchase 4GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(4*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase8gb.innerHTML = "Purchase 8GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(8*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase16gb.innerHTML = "Purchase 16GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(16*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase32gb.innerHTML = "Purchase 32GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(32*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase64gb.innerHTML = "Purchase 64GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(64*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase128gb.innerHTML = "Purchase 128GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(128*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase256gb.innerHTML = "Purchase 256GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(256*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase512gb.innerHTML = "Purchase 512GB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(512*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + purchase1tb.innerHTML = "Purchase 1TB Server - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(1024*_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer, 2); + if (!_SpecialServerIps__WEBPACK_IMPORTED_MODULE_12__["SpecialServerIps"].hasOwnProperty("Darkweb Server")) { purchaseTor.classList.add("a-link-button"); purchaseTor.classList.remove("a-link-button-bought"); - purchaseTor.innerHTML = "Purchase TOR Router - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TorRouterCost, 2); + purchaseTor.innerHTML = "Purchase TOR Router - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TorRouterCost, 2); } else { purchaseTor.classList.remove("a-link-button"); purchaseTor.classList.add("a-link-button-bought"); @@ -3841,8 +3849,8 @@ function displayLocationContent() { //Check if the player is employed at this Location. If he is, display the "Work" button, //update the job title, etc. - if (loc != "" && loc === _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].companyName) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc]; + if (loc != "" && loc === _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].companyName) { + var company = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc]; jobTitle.style.display = "block"; jobReputation.style.display = "inline"; @@ -3850,7 +3858,7 @@ function displayLocationContent() { locationTxtDiv1.style.display = "block"; locationTxtDiv2.style.display = "block"; locationTxtDiv3.style.display = "block"; - jobTitle.innerHTML = "Job Title: " + _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].companyPosition.positionName; + jobTitle.innerHTML = "Job Title: " + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].companyPosition.positionName; var repGain = company.getFavorGain(); if (repGain.length != 2) {repGain = 0;} repGain = repGain[0]; @@ -3865,13 +3873,13 @@ function displayLocationContent() { "favor you gain depends on how much reputation you have with the company"; work.style.display = "block"; - var currPos = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].companyPosition; + var currPos = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].companyPosition; work.addEventListener("click", function() { if (currPos.isPartTimeJob()) { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startWorkPartTime(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startWorkPartTime(); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startWork(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startWork(); } return false; }); @@ -3906,23 +3914,23 @@ function displayLocationContent() { } //Calculate hospital Cost - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp < 0) {_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp = 0;} - var hospitalTreatmentCost = (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].max_hp - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp) * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp; + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp < 0) {_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp = 0;} + var hospitalTreatmentCost = (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].max_hp - _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp) * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp; //Set tooltip for job requirements - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SoftwareIntern, softwareJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SoftwareConsultant, softwareConsultantJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].ITIntern, itJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SecurityEngineer, securityEngineerJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].NetworkEngineer, networkEngineerJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].BusinessIntern, businessJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].BusinessConsultant, businessConsultantJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SecurityGuard, securityJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].FieldAgent, agentJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Employee, employeeJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeEmployee, employeePartTimeJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Waiter, waiterJob); - setJobRequirementTooltip(loc, _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeWaiter, waiterPartTimeJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SoftwareIntern, softwareJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SoftwareConsultant, softwareConsultantJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].ITIntern, itJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SecurityEngineer, securityEngineerJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].NetworkEngineer, networkEngineerJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].BusinessIntern, businessJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].BusinessConsultant, businessConsultantJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].SecurityGuard, securityJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].FieldAgent, agentJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Employee, employeeJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeEmployee, employeePartTimeJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Waiter, waiterJob); + setJobRequirementTooltip(loc, _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeWaiter, waiterPartTimeJob); switch (loc) { case Locations.AevumTravelAgency: @@ -3941,7 +3949,7 @@ function displayLocationContent() { break; case Locations.AevumECorp: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -3962,7 +3970,7 @@ function displayLocationContent() { break; case Locations.AevumBachmanAndAssociates: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -3975,7 +3983,7 @@ function displayLocationContent() { break; case Locations.AevumClarkeIncorporated: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -3988,7 +3996,7 @@ function displayLocationContent() { break; case Locations.AevumFulcrumTechnologies: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4008,7 +4016,7 @@ function displayLocationContent() { break; case Locations.AevumAeroCorp: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4020,7 +4028,7 @@ function displayLocationContent() { break; case Locations.AevumGalacticCybersystems: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4033,7 +4041,7 @@ function displayLocationContent() { break; case Locations.AevumWatchdogSecurity: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4047,7 +4055,7 @@ function displayLocationContent() { break; case Locations.AevumRhoConstruction: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; businessJob.style.display = "block"; @@ -4056,7 +4064,7 @@ function displayLocationContent() { break; case Locations.AevumPolice: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; securityJob.style.display = "block"; @@ -4065,7 +4073,7 @@ function displayLocationContent() { break; case Locations.AevumNetLinkTechnologies: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4105,7 +4113,7 @@ function displayLocationContent() { break; case Locations.ChongqingKuaiGongInternational: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4118,7 +4126,7 @@ function displayLocationContent() { break; case Locations.ChongqingSolarisSpaceSystems: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4146,7 +4154,7 @@ function displayLocationContent() { break; case Locations.Sector12MegaCorp: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4159,7 +4167,7 @@ function displayLocationContent() { break; case Locations.Sector12BladeIndustries: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4172,7 +4180,7 @@ function displayLocationContent() { break; case Locations.Sector12FourSigma: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4185,7 +4193,7 @@ function displayLocationContent() { break; case Locations.Sector12IcarusMicrosystems: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4198,7 +4206,7 @@ function displayLocationContent() { break; case Locations.Sector12UniversalEnergy: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4211,7 +4219,7 @@ function displayLocationContent() { break; case Locations.Sector12DeltaOne: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4223,7 +4231,7 @@ function displayLocationContent() { break; case Locations.Sector12CIA: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4236,7 +4244,7 @@ function displayLocationContent() { break; case Locations.Sector12NSA: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4244,9 +4252,9 @@ function displayLocationContent() { networkEngineerJob.style.display = "block"; securityJob.style.display = "block"; agentJob.style.display = "block"; - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].bitNodeN === 6 || _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_7__["hasBladeburnerSF"] === true) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].bitNodeN === 8) {break;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_0__["Bladeburner"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].bitNodeN === 6 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_7__["hasBladeburnerSF"] === true) { + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].bitNodeN === 8) {break;} + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_0__["Bladeburner"]) { //Note: Can't infiltrate NSA when part of bladeburner nsaBladeburner.innerText = "Enter Bladeburner Headquarters"; } else { @@ -4262,7 +4270,7 @@ function displayLocationContent() { break; case Locations.Sector12AlphaEnterprises: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4277,7 +4285,7 @@ function displayLocationContent() { break; case Locations.Sector12CarmichaelSecurity: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4291,14 +4299,14 @@ function displayLocationContent() { break; case Locations.Sector12FoodNStuff: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; employeeJob.style.display = "block"; employeePartTimeJob.style.display = "block"; break; case Locations.Sector12JoesGuns: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; employeeJob.style.display = "block"; employeePartTimeJob.style.display = "block"; @@ -4320,7 +4328,7 @@ function displayLocationContent() { case Locations.Sector12CityHall: cityHallCreateCorporation.style.display = "block"; - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_2__["Corporation"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_2__["Corporation"]) { cityHallCreateCorporation.className = "a-link-button-inactive"; } else { cityHallCreateCorporation.className = "a-link-button"; @@ -4337,7 +4345,7 @@ function displayLocationContent() { break; case Locations.NewTokyoDefComm: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4349,7 +4357,7 @@ function displayLocationContent() { break; case Locations.NewTokyoVitaLife: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4362,7 +4370,7 @@ function displayLocationContent() { break; case Locations.NewTokyoGlobalPharmaceuticals: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4376,7 +4384,7 @@ function displayLocationContent() { break; case Locations.NewTokyoNoodleBar: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; waiterJob.style.display = "block"; waiterPartTimeJob.style.display = "block"; @@ -4392,7 +4400,7 @@ function displayLocationContent() { break; case Locations.IshimaStormTechnologies: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4416,7 +4424,7 @@ function displayLocationContent() { break; case Locations.IshimaNovaMedical: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4429,7 +4437,7 @@ function displayLocationContent() { break; case Locations.IshimaOmegaSoftware: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4463,7 +4471,7 @@ function displayLocationContent() { break; case Locations.VolhavenOmniTekIncorporated: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4481,7 +4489,7 @@ function displayLocationContent() { break; case Locations.VolhavenNWO: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4494,7 +4502,7 @@ function displayLocationContent() { break; case Locations.VolhavenHeliosLabs: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4506,7 +4514,7 @@ function displayLocationContent() { break; case Locations.VolhavenOmniaCybersystems: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4518,7 +4526,7 @@ function displayLocationContent() { break; case Locations.VolhavenLexoCorp: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4532,7 +4540,7 @@ function displayLocationContent() { break; case Locations.VolhavenSysCoreSecurities: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; itJob.style.display = "block"; @@ -4543,7 +4551,7 @@ function displayLocationContent() { break; case Locations.VolhavenCompuTek: - locationInfo.innerHTML = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; + locationInfo.innerHTML = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc].info; softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; @@ -4577,18 +4585,18 @@ function displayLocationContent() { case Locations.NewTokyoSlums: case Locations.IshimaSlums: case Locations.VolhavenSlums: - var shopliftChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Shoplift.successRate(); - var robStoreChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].RobStore.successRate(); - var mugChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Mug.successRate(); - var larcenyChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Larceny.successRate(); - var drugsChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].DealDrugs.successRate(); - var bondChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].BondForgery.successRate(); - var armsChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].TraffickArms.successRate(); - var homicideChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Homicide.successRate(); - var gtaChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].GrandTheftAuto.successRate(); - var kidnapChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Kidnap.successRate(); - var assassinateChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Assassination.successRate(); - var heistChance = _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Heist.successRate(); + var shopliftChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Shoplift.successRate(); + var robStoreChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].RobStore.successRate(); + var mugChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Mug.successRate(); + var larcenyChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Larceny.successRate(); + var drugsChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].DealDrugs.successRate(); + var bondChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].BondForgery.successRate(); + var armsChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].TraffickArms.successRate(); + var homicideChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Homicide.successRate(); + var gtaChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].GrandTheftAuto.successRate(); + var kidnapChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Kidnap.successRate(); + var assassinateChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Assassination.successRate(); + var heistChance = _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Heist.successRate(); slumsDescText.style.display = "block"; slumsShoplift.style.display = "block"; @@ -4641,16 +4649,16 @@ function displayLocationContent() { //Make the "Apply to be Employee and Waiter" texts disappear if you already hold the job //Includes part-time stuff - if (loc == _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].companyName) { - var currPos = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].companyPosition; + if (loc == _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].companyName) { + var currPos = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].companyPosition; - if (currPos.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Employee.positionName) { + if (currPos.positionName == _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Employee.positionName) { employeeJob.style.display = "none"; - } else if (currPos.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Waiter.positionName) { + } else if (currPos.positionName == _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].Waiter.positionName) { waiterJob.style.display = "none"; - } else if (currPos.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeEmployee.positionName) { + } else if (currPos.positionName == _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeEmployee.positionName) { employeePartTimeJob.style.display = "none"; - } else if (currPos.positionName == _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeWaiter.positionName) { + } else if (currPos.positionName == _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].PartTimeWaiter.positionName) { waiterPartTimeJob.style.display = "none"; } } @@ -4660,456 +4668,456 @@ function initLocationButtons() { //Buttons to travel to different locations in World let aevumTravelAgency = document.getElementById("aevum-travelagency"); aevumTravelAgency.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumTravelAgency; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumTravelAgency; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumHospital = document.getElementById("aevum-hospital"); aevumHospital.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumSummitUniversity = document.getElementById("aevum-summituniversity"); aevumSummitUniversity.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumSummitUniversity; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumSummitUniversity; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumECorp = document.getElementById("aevum-ecorp"); aevumECorp.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumECorp; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumECorp; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumBachmanAndAssociates = document.getElementById("aevum-bachmanandassociates"); aevumBachmanAndAssociates.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumBachmanAndAssociates; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumBachmanAndAssociates; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumClarkeIncorporated = document.getElementById("aevum-clarkeincorporated"); aevumClarkeIncorporated.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumClarkeIncorporated; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumClarkeIncorporated; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumFulcrumTechnologies = document.getElementById("aevum-fulcrumtechnologies"); aevumFulcrumTechnologies.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumFulcrumTechnologies; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumFulcrumTechnologies; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumAeroCorp = document.getElementById("aevum-aerocorp"); aevumAeroCorp.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumAeroCorp; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumAeroCorp; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumGalacticCybersystems = document.getElementById("aevum-galacticcybersystems"); aevumGalacticCybersystems.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumGalacticCybersystems; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumGalacticCybersystems; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumWatchdogSecurity = document.getElementById("aevum-watchdogsecurity"); aevumWatchdogSecurity.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumWatchdogSecurity; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumWatchdogSecurity; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumRhoConstruction = document.getElementById("aevum-rhoconstruction"); aevumRhoConstruction.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumRhoConstruction; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumRhoConstruction; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumPolice = document.getElementById("aevum-aevumpolice"); aevumPolice.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumPolice; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumPolice; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumNetLinkTechnologies = document.getElementById("aevum-netlinktechnologies"); aevumNetLinkTechnologies.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumNetLinkTechnologies; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumNetLinkTechnologies; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumCrushFitnessGym = document.getElementById("aevum-crushfitnessgym"); aevumCrushFitnessGym.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumCrushFitnessGym; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumCrushFitnessGym; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumSnapFitnessGym = document.getElementById("aevum-snapfitnessgym"); aevumSnapFitnessGym.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumSnapFitnessGym; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumSnapFitnessGym; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let aevumSlums = document.getElementById("aevum-slums"); aevumSlums.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumSlums; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.AevumSlums; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let chongqingTravelAgency = document.getElementById("chongqing-travelagency"); chongqingTravelAgency.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingTravelAgency; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingTravelAgency; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let chongqingHospital = document.getElementById("chongqing-hospital"); chongqingHospital.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let chongqingKuaiGongInternational = document.getElementById("chongqing-kuaigonginternational"); chongqingKuaiGongInternational.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingKuaiGongInternational; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingKuaiGongInternational; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let chongqingSolarisSpaceSystems = document.getElementById("chongqing-solarisspacesystems"); chongqingSolarisSpaceSystems.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingSolarisSpaceSystems; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingSolarisSpaceSystems; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let chongqingSlums = document.getElementById("chongqing-slums"); chongqingSlums.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingSlums; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.ChongqingSlums; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12TravelAgency = document.getElementById("sector12-travelagency"); sector12TravelAgency.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12TravelAgency; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12TravelAgency; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12Hospital = document.getElementById("sector12-hospital"); sector12Hospital.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12RothmanUniversity = document.getElementById("sector12-rothmanuniversity"); sector12RothmanUniversity.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12RothmanUniversity; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12RothmanUniversity; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12MegaCorp = document.getElementById("sector12-megacorp"); sector12MegaCorp.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12MegaCorp; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12MegaCorp; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12BladeIndustries = document.getElementById("sector12-bladeindustries"); sector12BladeIndustries.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12BladeIndustries; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12BladeIndustries; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12FourSigma = document.getElementById("sector12-foursigma"); sector12FourSigma.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12FourSigma; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12FourSigma; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12IcarusMicrosystems = document.getElementById("sector12-icarusmicrosystems"); sector12IcarusMicrosystems.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12IcarusMicrosystems; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12IcarusMicrosystems; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12UniversalEnergy = document.getElementById("sector12-universalenergy"); sector12UniversalEnergy.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12UniversalEnergy; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12UniversalEnergy; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12DeltaOne = document.getElementById("sector12-deltaone"); sector12DeltaOne.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12DeltaOne; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12DeltaOne; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12CIA = document.getElementById("sector12-cia"); sector12CIA.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12CIA; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12CIA; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12NSA = document.getElementById("sector12-nsa"); sector12NSA.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12NSA; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12NSA; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12AlphaEnterprises = document.getElementById("sector12-alphaenterprises"); sector12AlphaEnterprises.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12AlphaEnterprises; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12AlphaEnterprises; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12CarmichaelSecurity = document.getElementById("sector12-carmichaelsecurity"); sector12CarmichaelSecurity.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12CarmichaelSecurity; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12CarmichaelSecurity; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12FoodNStuff = document.getElementById("sector12-foodnstuff"); sector12FoodNStuff.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12FoodNStuff; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12FoodNStuff; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12JoesGuns = document.getElementById("sector12-joesguns"); sector12JoesGuns.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12JoesGuns; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12JoesGuns; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12IronGym = document.getElementById("sector12-irongym"); sector12IronGym.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12IronGym; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12IronGym; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12PowerhouseGym = document.getElementById("sector12-powerhousegym"); sector12PowerhouseGym.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12PowerhouseGym; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12PowerhouseGym; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12Slums = document.getElementById("sector12-slums"); sector12Slums.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12Slums; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12Slums; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let sector12CityHall = document.getElementById("sector12-cityhall"); sector12CityHall.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12CityHall; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Sector12CityHall; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoTravelAgency = document.getElementById("newtokyo-travelagency"); newTokyoTravelAgency.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoTravelAgency; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoTravelAgency; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoHospital = document.getElementById("newtokyo-hospital"); newTokyoHospital.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoDefComm = document.getElementById("newtokyo-defcomm"); newTokyoDefComm.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoDefComm; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoDefComm; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoVitaLife = document.getElementById("newtokyo-vitalife"); newTokyoVitaLife.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoVitaLife; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoVitaLife; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoGlobalPharmaceuticals = document.getElementById("newtokyo-globalpharmaceuticals"); newTokyoGlobalPharmaceuticals.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoGlobalPharmaceuticals; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoGlobalPharmaceuticals; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoNoodleBar = document.getElementById("newtokyo-noodlebar"); newTokyoNoodleBar.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoNoodleBar; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoNoodleBar; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let newTokyoSlums = document.getElementById("newtokyo-slums"); newTokyoSlums.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoSlums; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.NewTokyoSlums; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let ishimaTravelAgency = document.getElementById("ishima-travelagency"); ishimaTravelAgency.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaTravelAgency; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaTravelAgency; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let ishimaHospital = document.getElementById("ishima-hospital"); ishimaHospital.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let ishimaStormTechnologies = document.getElementById("ishima-stormtechnologies"); ishimaStormTechnologies.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaStormTechnologies; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaStormTechnologies; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let ishimaNovaMedical = document.getElementById("ishima-novamedical"); ishimaNovaMedical.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaNovaMedical; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaNovaMedical; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let ishimaOmegaSoftware = document.getElementById("ishima-omegasoftware"); ishimaOmegaSoftware.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaOmegaSoftware; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaOmegaSoftware; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let ishimaSlums = document.getElementById("ishima-slums"); ishimaSlums.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaSlums; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.IshimaSlums; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenTravelAgency = document.getElementById("volhaven-travelagency"); volhavenTravelAgency.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenTravelAgency; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenTravelAgency; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenHospital = document.getElementById("volhaven-hospital"); volhavenHospital.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.Hospital; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenZBInstituteOfTechnology = document.getElementById("volhaven-zbinstituteoftechnology"); volhavenZBInstituteOfTechnology.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenZBInstituteOfTechnology; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenZBInstituteOfTechnology; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenOmniTekIncorporated = document.getElementById("volhaven-omnitekincorporated"); volhavenOmniTekIncorporated.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenOmniTekIncorporated; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenOmniTekIncorporated; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenNWO = document.getElementById("volhaven-nwo"); volhavenNWO.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenNWO; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenNWO; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenHeliosLabs = document.getElementById("volhaven-helioslabs"); volhavenHeliosLabs.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenHeliosLabs; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenHeliosLabs; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenOmniaCybersystems = document.getElementById("volhaven-omniacybersystems"); volhavenOmniaCybersystems.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenOmniaCybersystems; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenOmniaCybersystems; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenLexoCorp = document.getElementById("volhaven-lexocorp"); volhavenLexoCorp.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenLexoCorp; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenLexoCorp; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenSysCoreSecurities = document.getElementById("volhaven-syscoresecurities"); volhavenSysCoreSecurities.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenSysCoreSecurities; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenSysCoreSecurities; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenCompuTek = document.getElementById("volhaven-computek"); volhavenCompuTek.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenCompuTek; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenCompuTek; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenMilleniumFitnessGym = document.getElementById("volhaven-milleniumfitnessgym"); volhavenMilleniumFitnessGym.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenMilleniumFitnessGym; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenMilleniumFitnessGym; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); let volhavenSlums = document.getElementById("volhaven-slums"); volhavenSlums.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenSlums; - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].location = Locations.VolhavenSlums; + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadLocationContent(); return false; }); @@ -5171,117 +5179,117 @@ function initLocationButtons() { var hospitalTreatment = document.getElementById("location-hospital-treatment"); softwareJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSoftwareJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSoftwareJob(); return false; }); softwareConsultantJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSoftwareConsultantJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSoftwareConsultantJob(); return false; }); itJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForItJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForItJob(); return false; }); securityEngineerJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSecurityEngineerJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSecurityEngineerJob(); return false; }); networkEngineerJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForNetworkEngineerJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForNetworkEngineerJob(); return false; }); businessJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForBusinessJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForBusinessJob(); return false; }); businessConsultantJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForBusinessConsultantJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForBusinessConsultantJob(); return false; }); securityJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSecurityJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForSecurityJob(); return false; }); agentJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForAgentJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForAgentJob(); return false; }); employeeJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForEmployeeJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForEmployeeJob(); return false; }); employeePartTimeJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForPartTimeEmployeeJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForPartTimeEmployeeJob(); return false; }); waiterJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForWaiterJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForWaiterJob(); return false; }); waiterPartTimeJob.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForPartTimeWaiterJob(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].applyForPartTimeWaiterJob(); return false; }); purchase2gb.addEventListener("click", function() { - purchaseServerBoxCreate(2, 2 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(2, 2 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase4gb.addEventListener("click", function() { - purchaseServerBoxCreate(4, 4 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(4, 4 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase8gb.addEventListener("click", function() { - purchaseServerBoxCreate(8, 8 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(8, 8 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase16gb.addEventListener("click", function() { - purchaseServerBoxCreate(16, 16 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(16, 16 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase32gb.addEventListener("click", function() { - purchaseServerBoxCreate(32, 32 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(32, 32 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase64gb.addEventListener("click", function() { - purchaseServerBoxCreate(64, 64 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(64, 64 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase128gb.addEventListener("click", function() { - purchaseServerBoxCreate(128, 128 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(128, 128 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase256gb.addEventListener("click", function() { - purchaseServerBoxCreate(256, 256 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(256, 256 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase512gb.addEventListener("click", function() { - purchaseServerBoxCreate(512, 512 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(512, 512 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); purchase1tb.addEventListener("click", function() { - purchaseServerBoxCreate(1024, 1024 * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); + purchaseServerBoxCreate(1024, 1024 * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].BaseCostFor1GBOfRamServer); return false; }); @@ -5291,25 +5299,25 @@ function initLocationButtons() { }); purchaseHomeRam.addEventListener("click", function() { - const cost = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getUpgradeHomeRamCost(); - const ram = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().maxRam; + const cost = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getUpgradeHomeRamCost(); + const ram = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().maxRam; - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Purchase"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", ()=>{ - Object(_ServerPurchases_js__WEBPACK_IMPORTED_MODULE_10__["purchaseRamForHomeComputer"])(cost); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); + Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_10__["purchaseRamForHomeComputer"])(cost); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxCreate"])("Would you like to purchase additional RAM for your home computer?

" + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxCreate"])("Would you like to purchase additional RAM for your home computer?

" + "This will upgrade your RAM from " + ram + "GB to " + ram*2 + "GB.

" + "This will cost " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_16___default()(cost).format('$0.000a')); }); purchaseHomeCores.addEventListener("click", function() { - var currentCores = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores; + var currentCores = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores; if (currentCores >= 8) {return;} //Max of 8 cores //Cost of purchasing another cost is found by indexing this array with number of current cores @@ -5322,223 +5330,223 @@ function initLocationButtons() { 20000000000000000, //6->7 Cores - 20 quadrillion 200000000000000000]; //7->8 Cores - 200 quadrillion cost = cost[currentCores]; - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Purchase"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", ()=>{ - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You do not have enough mone to purchase an additional CPU Core for your home computer!"); + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(cost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You do not have enough mone to purchase an additional CPU Core for your home computer!"); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(cost); - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores++; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You purchased an additional CPU Core for your home computer! It now has " + - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores + " cores."); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores++; + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You purchased an additional CPU Core for your home computer! It now has " + + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores + " cores."); } - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxCreate"])("Would you like to purchase an additional CPU Core for your home computer? Each CPU Core " + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxCreate"])("Would you like to purchase an additional CPU Core for your home computer? Each CPU Core " + "lets you start with an additional Core Node in Hacking Missions.

" + - "Purchasing an additional core (for a total of " + (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores + 1) + ") will " + + "Purchasing an additional core (for a total of " + (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().cpuCores + 1) + ") will " + "cost " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_16___default()(cost).format('$0.000a')); }); travelToAevum.addEventListener("click", function() { - travelBoxCreate(Locations.Aevum, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); + travelBoxCreate(Locations.Aevum, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); return false; }); travelToChongqing.addEventListener("click", function() { - travelBoxCreate(Locations.Chongqing, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); + travelBoxCreate(Locations.Chongqing, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); return false; }); travelToSector12.addEventListener("click", function() { - travelBoxCreate(Locations.Sector12, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); + travelBoxCreate(Locations.Sector12, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); return false; }); travelToNewTokyo.addEventListener("click", function() { - travelBoxCreate(Locations.NewTokyo, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); + travelBoxCreate(Locations.NewTokyo, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); return false; }); travelToIshima.addEventListener("click", function() { - travelBoxCreate(Locations.Ishima, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); + travelBoxCreate(Locations.Ishima, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); return false; }); travelToVolhaven.addEventListener("click", function() { - travelBoxCreate(Locations.Volhaven, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); + travelBoxCreate(Locations.Volhaven, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TravelCost); return false; }); slumsShoplift.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Shoplift.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Shoplift.commit(); return false; }); slumsRobStore.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].RobStore.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].RobStore.commit(); return false; }); slumsMug.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Mug.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Mug.commit(); return false; }); slumsLarceny.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Larceny.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Larceny.commit(); return false; }); slumsDealDrugs.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].DealDrugs.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].DealDrugs.commit(); return false; }); slumsBondForgery.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].BondForgery.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].BondForgery.commit(); return false; }); slumsTrafficArms.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].TraffickArms.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].TraffickArms.commit(); return false; }); slumsHomicide.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Homicide.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Homicide.commit(); return false; }); slumsGta.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].GrandTheftAuto.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].GrandTheftAuto.commit(); return false; }); slumsKidnap.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Kidnap.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Kidnap.commit(); return false; }); slumsAssassinate.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Assassination.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Assassination.commit(); return false; }); slumsHeist.addEventListener("click", function() { - _Crimes_js__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Heist.commit(); + _Crimes__WEBPACK_IMPORTED_MODULE_4__["Crimes"].Heist.commit(); return false; }); cityHallCreateCorporation.addEventListener("click", function() { - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerText = "Create Corporation"; noBtn.innerText = "Cancel"; yesBtn.addEventListener("click", function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(150e9)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough money to create a corporation! You need $150b"); - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(150e9)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You don't have enough money to create a corporation! You need $150b"); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); } - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(150e9); - var companyName = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetInput"])(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(150e9); + var companyName = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetInput"])(); if (companyName == null || companyName == "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid company name!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid company name!"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].corporation = new _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_2__["Corporation"]({ + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].corporation = new _CompanyManagement__WEBPACK_IMPORTED_MODULE_2__["Corporation"]({ name:companyName, }); displayLocationContent(); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Congratulations! You just started your own corporation. You can visit " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Congratulations! You just started your own corporation. You can visit " + "and manage your company in the City"); - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", function() { - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); }); - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_2__["Corporation"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_2__["Corporation"]) { return; } else { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxCreate"])("Would you like to start a corporation? This will require $150b " + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxCreate"])("Would you like to start a corporation? This will require $150b " + "for registration and initial funding.

If so, please enter " + "a name for your corporation below:"); } }); nsaBladeburner.addEventListener("click", function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner && _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_0__["Bladeburner"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner && _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_0__["Bladeburner"]) { //Enter Bladeburner division - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadBladeburnerContent(); + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadBladeburnerContent(); } else { //Apply for Bladeburner division - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].strength >= 100 && _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].defense >= 100 && - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].dexterity >= 100 && _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].agility >= 100) { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner = new _Bladeburner_js__WEBPACK_IMPORTED_MODULE_0__["Bladeburner"]({new:true}); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You have been accepted into the Bladeburner division!"); + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].strength >= 100 && _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].defense >= 100 && + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].dexterity >= 100 && _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].agility >= 100) { + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].bladeburner = new _Bladeburner__WEBPACK_IMPORTED_MODULE_0__["Bladeburner"]({new:true}); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You have been accepted into the Bladeburner division!"); displayLocationContent(); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Rejected! Please apply again when you have 100 of each combat stat (str, def, dex, agi)"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Rejected! Please apply again when you have 100 of each combat stat (str, def, dex, agi)"); } } }); hospitalTreatment.addEventListener("click", function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp < 0) {_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp = 0;} - var price = (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].max_hp - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp) * _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp; - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(price); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You were healed to full health! The hospital billed " + + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp < 0) {_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp = 0;} + var price = (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].max_hp - _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp) * _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].HospitalCostPerHp; + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(price); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You were healed to full health! The hospital billed " + "you for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(price, 2).toString()); - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].hp = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].max_hp; + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].hp = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].max_hp; displayLocationContent(); return false; }); } function travelToCity(destCityName, cost) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].firstTimeTraveled === false) { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].firstTimeTraveled = true; + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].firstTimeTraveled === false) { + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].firstTimeTraveled = true; document.getElementById("travel-tab").style.display = "list-item"; document.getElementById("world-menu-header").click(); document.getElementById("world-menu-header").click(); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You cannot afford to travel to " + destCityName); + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(cost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You cannot afford to travel to " + destCityName); return; } - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(cost); - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].city = destCityName; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You are now in " + destCityName + "!"); - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadWorldContent(); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].city = destCityName; + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You are now in " + destCityName + "!"); + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadWorldContent(); } function purchaseTorRouter() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TorRouterCost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You cannot afford to purchase the Tor router"); + if (_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TorRouterCost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You cannot afford to purchase the Tor router"); return; } - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(_Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TorRouterCost); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].TorRouterCost); - var darkweb = new _Server_js__WEBPACK_IMPORTED_MODULE_9__["Server"]({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_15__["createRandomIp"])(), hostname:"darkweb", organizationName:"", + var darkweb = new _Server__WEBPACK_IMPORTED_MODULE_9__["Server"]({ + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_15__["createRandomIp"])(), hostname:"darkweb", organizationName:"", isConnectedTo:false, adminRights:false, purchasedByPlayer:false, maxRam:1 }); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_9__["AddToAllServers"])(darkweb); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_12__["SpecialServerIps"].addIp("Darkweb Server", darkweb.ip); + Object(_Server__WEBPACK_IMPORTED_MODULE_9__["AddToAllServers"])(darkweb); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_12__["SpecialServerIps"].addIp("Darkweb Server", darkweb.ip); const purchaseTor = document.getElementById("location-purchase-tor"); purchaseTor.setAttribute("class", "a-link-button-bought"); purchaseTor.innerHTML = "TOR Router - Purchased"; - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().serversOnNetwork.push(darkweb.ip); - darkweb.serversOnNetwork.push(_Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().ip); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You have purchased a Tor router!
You now have access to the dark web from your home computer
Use the scan/scan-analyze commands to search for the dark web connection."); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().serversOnNetwork.push(darkweb.ip); + darkweb.serversOnNetwork.push(_Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getHomeComputer().ip); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You have purchased a Tor router!
You now have access to the dark web from your home computer
Use the scan/scan-analyze commands to search for the dark web connection."); } function displayUniversityLocationContent(costMult) { @@ -5556,11 +5564,11 @@ function displayUniversityLocationContent(costMult) { classLeadershipButton.style.display = "block"; //Costs (per second) - var dataStructuresCost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructuresBaseCost * costMult; - var networksCost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworksBaseCost * costMult; - var algorithmsCost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithmsBaseCost * costMult; - var managementCost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagementBaseCost * costMult; - var leadershipCost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadershipBaseCost * costMult; + var dataStructuresCost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructuresBaseCost * costMult; + var networksCost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworksBaseCost * costMult; + var algorithmsCost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithmsBaseCost * costMult; + var managementCost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagementBaseCost * costMult; + var leadershipCost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadershipBaseCost * costMult; //Update button text to show cost classDataStructuresButton.innerHTML = "Take Data Structures course ($" + dataStructuresCost + " / sec)"; @@ -5571,39 +5579,39 @@ function displayUniversityLocationContent(costMult) { } function setUniversityLocationButtons(costMult, expMult) { - var newStudyCS = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-study-computer-science"); + var newStudyCS = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-study-computer-science"); newStudyCS.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassStudyComputerScience); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassStudyComputerScience); return false; }); - var newClassDataStructures = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-data-structures-class"); + var newClassDataStructures = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-data-structures-class"); newClassDataStructures.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructures); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassDataStructures); return false; }); - var newClassNetworks = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-networks-class"); + var newClassNetworks = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-networks-class"); newClassNetworks.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworks); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassNetworks); return false; }); - var newClassAlgorithms = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-algorithms-class"); + var newClassAlgorithms = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-algorithms-class"); newClassAlgorithms.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithms); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassAlgorithms); return false; }); - var newClassManagement = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-management-class"); + var newClassManagement = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-management-class"); newClassManagement.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagement); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassManagement); return false; }); - var newClassLeadership = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-leadership-class"); + var newClassLeadership = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-leadership-class"); newClassLeadership.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadership); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassLeadership); return false; }); } @@ -5619,7 +5627,7 @@ function displayGymLocationContent(costMult) { gymAgiButton.style.display = "block"; //Costs (per second) - var cost = _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult; + var cost = _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymBaseCost * costMult; //Update button text to show cost gymStrButton.innerHTML = "Train Strength ($" + cost + " / sec)"; @@ -5629,27 +5637,27 @@ function displayGymLocationContent(costMult) { } function setGymLocationButtons(costMult, expMult) { - var gymStr = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-str"); + var gymStr = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-str"); gymStr.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymStrength); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymStrength); return false; }); - var gymDef = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-def"); + var gymDef = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-def"); gymDef.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDefense); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDefense); return false; }); - var gymDex = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-dex"); + var gymDex = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-dex"); gymDex.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDexterity); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymDexterity); return false; }); - var gymAgi = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-agi"); + var gymAgi = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_14__["clearEventListeners"])("location-gym-train-agi"); gymAgi.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymAgility); + _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_3__["CONSTANTS"].ClassGymAgility); return false; }); } @@ -5657,8 +5665,8 @@ function setGymLocationButtons(costMult, expMult) { function setInfiltrateButton(btn, companyName, startLevel, val, maxClearance, difficulty) { btn.style.display = "block"; btn.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadInfiltrationContent(); - Object(_Infiltration_js__WEBPACK_IMPORTED_MODULE_6__["beginInfiltration"])(companyName, startLevel, val, maxClearance, difficulty) + _engine__WEBPACK_IMPORTED_MODULE_5__["Engine"].loadInfiltrationContent(); + Object(_Infiltration__WEBPACK_IMPORTED_MODULE_6__["beginInfiltration"])(companyName, startLevel, val, maxClearance, difficulty) return false; }); } @@ -5666,49 +5674,49 @@ function setInfiltrateButton(btn, companyName, startLevel, val, maxClearance, di //Finds the next target job for the player at the given company (loc) and //adds the tooltiptext to the Application button, given by 'button' function setJobRequirementTooltip(loc, entryPosType, btn) { - var company = _Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc]; + var company = _Company__WEBPACK_IMPORTED_MODULE_1__["Companies"][loc]; if (company == null) {return;} - var pos = _Player_js__WEBPACK_IMPORTED_MODULE_8__["Player"].getNextCompanyPosition(company, entryPosType); + var pos = _Player__WEBPACK_IMPORTED_MODULE_8__["Player"].getNextCompanyPosition(company, entryPosType); if (pos == null) {return}; if (!company.hasPosition(pos)) {return;} - var reqText = Object(_Company_js__WEBPACK_IMPORTED_MODULE_1__["getJobRequirementText"])(company, pos, true); + var reqText = Object(_Company__WEBPACK_IMPORTED_MODULE_1__["getJobRequirementText"])(company, pos, true); btn.innerHTML += "" + reqText + ""; } function travelBoxCreate(destCityName, cost) { - if(_Settings_js__WEBPACK_IMPORTED_MODULE_11__["Settings"].SuppressTravelConfirmation) { + if(_Settings__WEBPACK_IMPORTED_MODULE_11__["Settings"].SuppressTravelConfirmation) { travelToCity(destCityName, cost); return; } - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Yes"; noBtn.innerHTML = "No"; noBtn.addEventListener("click", () => { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); return false; }); yesBtn.addEventListener("click", () => { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxClose"])(); travelToCity(destCityName, cost); return false; }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxCreate"])("Would you like to travel to " + destCityName + "? The trip will cost $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(cost, 2) + "."); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoBoxCreate"])("Would you like to travel to " + destCityName + "? The trip will cost $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(cost, 2) + "."); } function purchaseServerBoxCreate(ram, cost) { - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetYesButton"])(); - var noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetYesButton"])(); + var noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerHTML = "Purchase Server"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", function() { - Object(_ServerPurchases_js__WEBPACK_IMPORTED_MODULE_10__["purchaseServer"])(ram, cost); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); + Object(_ServerPurchases__WEBPACK_IMPORTED_MODULE_10__["purchaseServer"])(ram, cost); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", function() { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxCreate"])("Would you like to purchase a new server with " + ram + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_18__["yesNoTxtInpBoxCreate"])("Would you like to purchase a new server with " + ram + "GB of RAM for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_17__["formatNumber"])(cost, 2) + "?

" + "Please enter the server hostname below:
"); } @@ -5726,45 +5734,45 @@ function purchaseServerBoxCreate(ram, cost) { "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Engine", function() { return Engine; }); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/GameOptions.js */ 53); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/GameOptions */ 53); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__); -/* harmony import */ var _utils_LogBox_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/LogBox.js */ 49); -/* harmony import */ var _ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ActiveScriptsUI.js */ 41); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Bladeburner.js */ 26); -/* harmony import */ var _CinematicText_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CinematicText.js */ 68); -/* harmony import */ var _Company_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Company.js */ 10); -/* harmony import */ var _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./CompanyManagement.js */ 42); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Fconf_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Fconf.js */ 32); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Gang_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Gang.js */ 34); -/* harmony import */ var _HacknetNode_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./HacknetNode.js */ 36); -/* harmony import */ var _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./InteractiveTutorial.js */ 24); -/* harmony import */ var _Literature_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Literature.js */ 52); -/* harmony import */ var _Message_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Message.js */ 28); -/* harmony import */ var _Missions_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Missions.js */ 33); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Prestige_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Prestige.js */ 56); -/* harmony import */ var _RedPill_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./RedPill.js */ 37); -/* harmony import */ var _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./SaveObject.js */ 45); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _SourceFile_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./SourceFile.js */ 40); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _StockMarket_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./StockMarket.js */ 21); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Terminal.js */ 22); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/LogBox */ 49); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ActiveScriptsUI */ 41); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Bladeburner */ 26); +/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./CinematicText */ 68); +/* harmony import */ var _Company__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Company */ 10); +/* harmony import */ var _CompanyManagement__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./CompanyManagement */ 42); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Fconf */ 32); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Gang */ 34); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./HacknetNode */ 36); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./InteractiveTutorial */ 24); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Literature */ 52); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Message */ 28); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./Missions */ 33); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./Prestige */ 56); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./RedPill */ 37); +/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./SaveObject */ 45); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./SourceFile */ 40); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./StockMarket */ 21); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./Terminal */ 22); @@ -5820,54 +5828,54 @@ __webpack_require__.r(__webpack_exports__); * Alt-o - Options */ $(document).keydown(function(e) { - if (_Settings_js__WEBPACK_IMPORTED_MODULE_32__["Settings"].DisableHotkeys === true) {return;} - if (!_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking && !_RedPill_js__WEBPACK_IMPORTED_MODULE_28__["redPillFlag"] && !_Missions_js__WEBPACK_IMPORTED_MODULE_23__["inMission"] && !_CinematicText_js__WEBPACK_IMPORTED_MODULE_10__["cinematicTextFlag"]) { + if (_Settings__WEBPACK_IMPORTED_MODULE_32__["Settings"].DisableHotkeys === true) {return;} + if (!_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking && !_RedPill__WEBPACK_IMPORTED_MODULE_28__["redPillFlag"] && !_Missions__WEBPACK_IMPORTED_MODULE_23__["inMission"] && !_CinematicText__WEBPACK_IMPORTED_MODULE_10__["cinematicTextFlag"]) { if (e.keyCode == 84 && e.altKey) { e.preventDefault(); Engine.loadTerminalContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].C && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].C && e.altKey) { e.preventDefault(); Engine.loadCharacterContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].E && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].E && e.altKey) { e.preventDefault(); Engine.loadScriptEditorContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].S && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].S && e.altKey) { e.preventDefault(); Engine.loadActiveScriptsContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].H && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].H && e.altKey) { e.preventDefault(); Engine.loadHacknetNodesContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].W && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].W && e.altKey) { e.preventDefault(); Engine.loadWorldContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].J && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].J && e.altKey) { e.preventDefault(); Engine.loadJobContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].R && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].R && e.altKey) { e.preventDefault(); Engine.loadTravelContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].P && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].P && e.altKey) { e.preventDefault(); Engine.loadCreateProgramContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].F && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].F && e.altKey) { //Overriden by Fconf - if (Engine.currentPage === Engine.Page.Terminal && _Fconf_js__WEBPACK_IMPORTED_MODULE_16__["FconfSettings"].ENABLE_BASH_HOTKEYS) { + if (Engine.currentPage === Engine.Page.Terminal && _Fconf__WEBPACK_IMPORTED_MODULE_16__["FconfSettings"].ENABLE_BASH_HOTKEYS) { return; } e.preventDefault(); Engine.loadFactionsContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].A && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].A && e.altKey) { e.preventDefault(); Engine.loadAugmentationsContent(); - } else if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].U && e.altKey) { + } else if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].U && e.altKey) { e.preventDefault(); Engine.loadTutorialContent(); } } - if (e.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["KEY"].O && e.altKey) { + if (e.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_36__["KEY"].O && e.altKey) { e.preventDefault(); - Object(_utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxOpen"])(); + Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxOpen"])(); } }); @@ -6035,7 +6043,7 @@ let Engine = { editor.setValue(code); } editor.focus(); - Object(_Script_js__WEBPACK_IMPORTED_MODULE_30__["updateScriptEditorContent"])(); + Object(_Script__WEBPACK_IMPORTED_MODULE_30__["updateScriptEditorContent"])(); Engine.currentPage = Engine.Page.ScriptEditor; document.getElementById("create-script-menu-link").classList.add("active"); }, @@ -6043,7 +6051,7 @@ let Engine = { loadActiveScriptsContent: function() { Engine.hideAllContent(); Engine.Display.activeScriptsContent.style.display = "block"; - Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_6__["updateActiveScriptsItems"])(); + Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_6__["updateActiveScriptsItems"])(); Engine.currentPage = Engine.Page.ActiveScripts; document.getElementById("active-scripts-menu-link").classList.add("active"); }, @@ -6051,7 +6059,7 @@ let Engine = { loadHacknetNodesContent: function() { Engine.hideAllContent(); Engine.Display.hacknetNodesContent.style.display = "block"; - Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_19__["displayHacknetNodesContent"])(); + Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_19__["displayHacknetNodesContent"])(); Engine.currentPage = Engine.Page.HacknetNodes; document.getElementById("hacknet-nodes-menu-link").classList.add("active"); }, @@ -6067,7 +6075,7 @@ let Engine = { loadCreateProgramContent: function() { Engine.hideAllContent(); Engine.Display.createProgramContent.style.display = "block"; - Object(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["displayCreateProgramContent"])(); + Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_14__["displayCreateProgramContent"])(); Engine.currentPage = Engine.Page.CreateProgram; document.getElementById("create-program-menu-link").classList.add("active"); }, @@ -6089,7 +6097,7 @@ let Engine = { loadAugmentationsContent: function() { Engine.hideAllContent(); Engine.Display.augmentationsContent.style.display = "block"; - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["displayAugmentationsContent"])(); + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_7__["displayAugmentationsContent"])(); Engine.currentPage = Engine.Page.Augmentations; document.getElementById("augmentations-menu-link").classList.add("active"); }, @@ -6113,44 +6121,44 @@ let Engine = { loadLocationContent: function() { Engine.hideAllContent(); Engine.Display.locationContent.style.display = "block"; - Object(_Location_js__WEBPACK_IMPORTED_MODULE_17__["displayLocationContent"])(); + Object(_Location__WEBPACK_IMPORTED_MODULE_17__["displayLocationContent"])(); Engine.currentPage = Engine.Page.Location; }, loadTravelContent: function() { - switch(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].city) { - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum: - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumTravelAgency; + switch(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].city) { + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum: + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].AevumTravelAgency; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Chongqing: - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].ChongqingTravelAgency; + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Chongqing: + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].ChongqingTravelAgency; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12: - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12TravelAgency; + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12: + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12TravelAgency; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyo: - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyoTravelAgency; + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyo: + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyoTravelAgency; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Ishima: - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].IshimaTravelAgency; + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Ishima: + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].IshimaTravelAgency; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven: - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenTravelAgency; + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven: + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].VolhavenTravelAgency; break; default: - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("ERROR: Invalid city. This is a bug please contact game dev"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("ERROR: Invalid city. This is a bug please contact game dev"); break; } Engine.loadLocationContent(); }, loadJobContent: function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].companyName == "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("You do not currently have a job! You can visit various companies " + + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].companyName == "") { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("You do not currently have a job! You can visit various companies " + "in the city and try to find a job."); return; } - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].companyName; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].companyName; Engine.loadLocationContent(); }, @@ -6189,13 +6197,13 @@ let Engine = { Engine.hideAllContent(); Engine.Display.stockMarketContent.style.display = "block"; Engine.currentPage = Engine.Page.StockMarket; - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_35__["displayStockMarketContent"])(); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_35__["displayStockMarketContent"])(); }, loadGangContent: function() { Engine.hideAllContent(); - if (document.getElementById("gang-container") || _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].inGang()) { - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_18__["displayGangContent"])(); + if (document.getElementById("gang-container") || _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].inGang()) { + Object(_Gang__WEBPACK_IMPORTED_MODULE_18__["displayGangContent"])(); Engine.currentPage = Engine.Page.Gang; } else { Engine.loadTerminalContent(); @@ -6212,22 +6220,22 @@ let Engine = { }, loadCorporationContent: function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { Engine.hideAllContent(); document.getElementById("character-overview-wrapper").style.visibility = "hidden"; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.createUI(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.createUI(); Engine.currentPage = Engine.Page.Corporation; } }, loadBladeburnerContent: function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { try { Engine.hideAllContent(); Engine.currentPage = Engine.Page.Bladeburner; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.createContent(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.createContent(); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["exceptionAlert"])(e); } } }, @@ -6258,12 +6266,12 @@ let Engine = { document.getElementById("gang-container").style.display = "none"; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.clearUI(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.clearUI(); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.clearContent(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.clearContent(); } //Location lists @@ -6290,109 +6298,109 @@ let Engine = { }, displayCharacterOverviewInfo: function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hp == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hp = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].max_hp;} - var overviewText = "Hp: " + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hp + " / " + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].max_hp + "
" + - "Money: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].money.toNumber()).format('($0.000a)') + "
" + - "Hack: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_skill).toLocaleString() + "
" + - "Str: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].strength).toLocaleString() + "
" + - "Def: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].defense).toLocaleString() + "
" + - "Dex: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity).toLocaleString() + "
" + - "Agi: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].agility).toLocaleString() + "
" + - "Cha: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma).toLocaleString(); - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence >= 1) { - overviewText += "
Int: " + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence).toLocaleString(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hp == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hp = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].max_hp;} + var overviewText = "Hp: " + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hp + " / " + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].max_hp + "
" + + "Money: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].money.toNumber()).format('($0.000a)') + "
" + + "Hack: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_skill).toLocaleString() + "
" + + "Str: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].strength).toLocaleString() + "
" + + "Def: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].defense).toLocaleString() + "
" + + "Dex: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity).toLocaleString() + "
" + + "Agi: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].agility).toLocaleString() + "
" + + "Cha: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma).toLocaleString(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence >= 1) { + overviewText += "
Int: " + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence).toLocaleString(); } document.getElementById("character-overview-text").innerHTML = overviewText.replace( / /g, " "); }, /* Display character info */ displayCharacterInfo: function() { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["removeChildrenFromElement"])(Engine.Display.characterInfo); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["removeChildrenFromElement"])(Engine.Display.characterInfo); var companyPosition = ""; - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].companyPosition != "") { - companyPosition = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].companyPosition.positionName; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].companyPosition != "") { + companyPosition = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].companyPosition.positionName; } var intText = ""; - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence > 0) { - intText = 'Intelligence: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence).toLocaleString() + "


"; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence > 0) { + intText = 'Intelligence: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence).toLocaleString() + "


"; } let bitNodeTimeText = ""; - if(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.length > 0) { - bitNodeTimeText = 'Time played since last Bitnode destroyed: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["convertTimeMsToTimeElapsedString"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode) + '
'; + if(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.length > 0) { + bitNodeTimeText = 'Time played since last Bitnode destroyed: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode) + '
'; } - Engine.Display.characterInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("pre", { + Engine.Display.characterInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("pre", { innerHTML: 'General

' + - 'Current City: ' + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].city + '

' + - 'Employer: ' + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].companyName + '
' + + 'Current City: ' + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].city + '

' + + 'Employer: ' + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].companyName + '
' + 'Job Title: ' + companyPosition + '

' + - 'Money: $' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].money.toNumber(), 2)+ '


' + + 'Money: $' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].money.toNumber(), 2)+ '


' + 'Stats

' + - 'Hacking Level: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_skill).toLocaleString() + - " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_exp).format('(0.000a)') + ' experience)
' + - 'Strength: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].strength).toLocaleString() + - " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].strength_exp).format('(0.000a)') + ' experience)
' + - 'Defense: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].defense).toLocaleString() + - " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].defense_exp).format('(0.000a)')+ ' experience)
' + - 'Dexterity: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity).toLocaleString() + - " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity_exp).format('(0.000a)') + ' experience)
' + - 'Agility: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].agility).toLocaleString() + - " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].agility_exp).format('(0.000a)') + ' experience)
' + - 'Charisma: ' + (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma).toLocaleString() + - " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma_exp).format('(0.000a)') + ' experience)
' + + 'Hacking Level: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_skill).toLocaleString() + + " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_exp).format('(0.000a)') + ' experience)
' + + 'Strength: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].strength).toLocaleString() + + " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].strength_exp).format('(0.000a)') + ' experience)
' + + 'Defense: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].defense).toLocaleString() + + " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].defense_exp).format('(0.000a)')+ ' experience)
' + + 'Dexterity: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity).toLocaleString() + + " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity_exp).format('(0.000a)') + ' experience)
' + + 'Agility: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].agility).toLocaleString() + + " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].agility_exp).format('(0.000a)') + ' experience)
' + + 'Charisma: ' + (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma).toLocaleString() + + " (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_3___default()(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma_exp).format('(0.000a)') + ' experience)
' + intText + 'Multipliers

' + - 'Hacking Chance multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_chance_mult * 100, 2) + '%
' + - 'Hacking Speed multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_speed_mult * 100, 2) + '%
' + - 'Hacking Money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_money_mult * 100, 2) + '%
' + - 'Hacking Growth multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_grow_mult * 100, 2) + '%

' + - 'Hacking Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_mult * 100, 2) + '%
' + - 'Hacking Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_exp_mult * 100, 2) + '%

' + - 'Strength Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].strength_mult * 100, 2) + '%
' + - 'Strength Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].strength_exp_mult * 100, 2) + '%

' + - 'Defense Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].defense_mult * 100, 2) + '%
' + - 'Defense Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].defense_exp_mult * 100, 2) + '%

' + - 'Dexterity Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity_mult * 100, 2) + '%
' + - 'Dexterity Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity_exp_mult * 100, 2) + '%

' + - 'Agility Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].agility_mult * 100, 2) + '%
' + - 'Agility Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].agility_exp_mult * 100, 2) + '%

' + - 'Charisma Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma_mult * 100, 2) + '%
' + - 'Charisma Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma_exp_mult * 100, 2) + '%

' + - 'Hacknet Node production multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_money_mult * 100, 2) + '%
' + - 'Hacknet Node purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_purchase_cost_mult * 100, 2) + '%
' + - 'Hacknet Node RAM upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_ram_cost_mult * 100, 2) + '%
' + - 'Hacknet Node Core purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_core_cost_mult * 100, 2) + '%
' + - 'Hacknet Node level upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_level_cost_mult * 100, 2) + '%

' + - 'Company reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].company_rep_mult * 100, 2) + '%
' + - 'Faction reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].faction_rep_mult * 100, 2) + '%
' + - 'Salary multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].work_money_mult * 100, 2) + '%
' + - 'Crime success multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].crime_success_mult * 100, 2) + '%
' + - 'Crime money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].crime_money_mult * 100, 2) + '%


' + + 'Hacking Chance multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_chance_mult * 100, 2) + '%
' + + 'Hacking Speed multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_speed_mult * 100, 2) + '%
' + + 'Hacking Money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_money_mult * 100, 2) + '%
' + + 'Hacking Growth multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_grow_mult * 100, 2) + '%

' + + 'Hacking Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_mult * 100, 2) + '%
' + + 'Hacking Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacking_exp_mult * 100, 2) + '%

' + + 'Strength Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].strength_mult * 100, 2) + '%
' + + 'Strength Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].strength_exp_mult * 100, 2) + '%

' + + 'Defense Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].defense_mult * 100, 2) + '%
' + + 'Defense Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].defense_exp_mult * 100, 2) + '%

' + + 'Dexterity Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity_mult * 100, 2) + '%
' + + 'Dexterity Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].dexterity_exp_mult * 100, 2) + '%

' + + 'Agility Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].agility_mult * 100, 2) + '%
' + + 'Agility Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].agility_exp_mult * 100, 2) + '%

' + + 'Charisma Level multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma_mult * 100, 2) + '%
' + + 'Charisma Experience multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].charisma_exp_mult * 100, 2) + '%

' + + 'Hacknet Node production multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_money_mult * 100, 2) + '%
' + + 'Hacknet Node purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_purchase_cost_mult * 100, 2) + '%
' + + 'Hacknet Node RAM upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_ram_cost_mult * 100, 2) + '%
' + + 'Hacknet Node Core purchase cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_core_cost_mult * 100, 2) + '%
' + + 'Hacknet Node level upgrade cost multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknet_node_level_cost_mult * 100, 2) + '%

' + + 'Company reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].company_rep_mult * 100, 2) + '%
' + + 'Faction reputation gain multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].faction_rep_mult * 100, 2) + '%
' + + 'Salary multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].work_money_mult * 100, 2) + '%
' + + 'Crime success multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].crime_success_mult * 100, 2) + '%
' + + 'Crime money multiplier: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].crime_money_mult * 100, 2) + '%


' + 'Misc

' + - 'Servers owned: ' + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].purchasedServers.length + '
' + - 'Hacknet Nodes owned: ' + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknetNodes.length + '
' + - 'Augmentations installed: ' + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].augmentations.length + '
' + - 'Time played since last Augmentation: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["convertTimeMsToTimeElapsedString"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug) + '
' + + 'Servers owned: ' + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].purchasedServers.length + '
' + + 'Hacknet Nodes owned: ' + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hacknetNodes.length + '
' + + 'Augmentations installed: ' + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].augmentations.length + '
' + + 'Time played since last Augmentation: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug) + '
' + bitNodeTimeText + - 'Time played: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["convertTimeMsToTimeElapsedString"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime), + 'Time played: ' + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["convertTimeMsToTimeElapsedString"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime), })); - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.length !== 0) { - var index = "BitNode" + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.length !== 0) { + var index = "BitNode" + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN; - Engine.Display.characterInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { + Engine.Display.characterInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { width:"60%", innerHTML: - "
Current BitNode: " + _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN + " (" + _BitNode_js__WEBPACK_IMPORTED_MODULE_8__["BitNodes"][index].name + ")

", + "
Current BitNode: " + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN + " (" + _BitNode__WEBPACK_IMPORTED_MODULE_8__["BitNodes"][index].name + ")

", })); - Engine.Display.characterInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { + Engine.Display.characterInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { width:"60%", fontSize: "13px", marginLeft:"4%", - innerHTML:_BitNode_js__WEBPACK_IMPORTED_MODULE_8__["BitNodes"][index].info, + innerHTML:_BitNode__WEBPACK_IMPORTED_MODULE_8__["BitNodes"][index].info, })) } }, @@ -6413,32 +6421,32 @@ let Engine = { Engine.ishimaLocationsList.style.display = "none"; Engine.volhavenLocationsList.style.display = "none"; - document.getElementById("world-city-name").innerHTML = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].city; + document.getElementById("world-city-name").innerHTML = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].city; var cityDesc = document.getElementById("world-city-desc"); //TODO - switch(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].city) { - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum: + switch(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].city) { + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Aevum: Engine.aevumLocationsList.style.display = "inline"; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Chongqing: + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Chongqing: Engine.chongqingLocationsList.style.display = "inline"; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12: + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Sector12: Engine.sector12LocationsList.style.display = "inline"; //City hall only in BitNode-3/with Source-File 3 - if ((_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN === 3 || _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_24__["hasCorporationSF"]) && _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN !== 8) { + if ((_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN === 3 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_24__["hasCorporationSF"]) && _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN !== 8) { document.getElementById("sector12-cityhall-li").style.display = "block"; } else { document.getElementById("sector12-cityhall-li").style.display = "none"; } break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyo: + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].NewTokyo: Engine.newTokyoLocationsList.style.display = "inline"; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Ishima: + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Ishima: Engine.ishimaLocationsList.style.display = "inline"; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven: + case _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].Volhaven: Engine.volhavenLocationsList.style.display = "inline"; break; default: @@ -6452,22 +6460,22 @@ let Engine = { // Bladeburner HQ (if applicable); var genericLocationsList = document.getElementById("generic-locations-list"); genericLocationsList.style.display = "inline"; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["removeChildrenFromElement"])(genericLocationsList); - var li = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li"); - li.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["removeChildrenFromElement"])(genericLocationsList); + var li = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li"); + li.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { innerText:"World Stock Exchange", class:"a-link-button", clickListener:()=>{ - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_17__["Locations"].WorldStockExchange; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_17__["Locations"].WorldStockExchange; Engine.loadStockMarketContent(); return false; } })); genericLocationsList.appendChild(li); - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_12__["Corporation"] && document.getElementById("location-corporation-button") == null) { - var li = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li"); - li.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { - innerText:_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.name, id:"location-corporation-button", + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_12__["Corporation"] && document.getElementById("location-corporation-button") == null) { + var li = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li"); + li.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { + innerText:_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.name, id:"location-corporation-button", class:"a-link-button", clickListener:()=>{ Engine.loadCorporationContent(); @@ -6477,9 +6485,9 @@ let Engine = { genericLocationsList.appendChild(li); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { - var li = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li"); - li.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { + var li = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li"); + li.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { innerText:"Bladeburner Headquarters", class:"a-link-button", clickListener:()=>{ Engine.loadBladeburnerContent(); @@ -6491,67 +6499,67 @@ let Engine = { }, displayFactionsInfo: function() { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["removeChildrenFromElement"])(Engine.Display.factionsContent); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["removeChildrenFromElement"])(Engine.Display.factionsContent); //Factions - Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("h1", { + Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("h1", { innerText:"Factions" })); - Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { + Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { innerText:"Lists all factions you have joined" })); - var factionsList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("ul"); - Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("br")); + var factionsList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("ul"); + Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("br")); //Add a button for each faction you are a member of - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factions.length; ++i) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factions.length; ++i) { (function () { - var factionName = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factions[i]; + var factionName = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factions[i]; - factionsList.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { + factionsList.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { class:"a-link-button", innerText:factionName, padding:"4px", margin:"4px", display:"inline-block", clickListener:()=>{ Engine.loadFactionContent(); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["displayFactionContent"])(factionName); + Object(_Faction__WEBPACK_IMPORTED_MODULE_15__["displayFactionContent"])(factionName); return false; } })); - factionsList.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("br")); + factionsList.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("br")); }()); //Immediate invocation } Engine.Display.factionsContent.appendChild(factionsList); - Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("br")); + Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("br")); //Invited Factions - Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("h1", { + Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("h1", { innerText:"Outstanding Faction Invitations" })); - Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { + Engine.Display.factionsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { width:"70%", innerText:"Lists factions you have been invited to, as well as " + "factions you have previously rejected. You can accept " + "these faction invitations at any time." })); - var invitationsList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("ul"); + var invitationsList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("ul"); //Add a button to accept for each faction you have invitiations for - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations.length; ++i) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations.length; ++i) { (function () { - var factionName = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations[i]; + var factionName = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations[i]; - var item = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li", {padding:"6px", margin:"6px"}); - item.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { + var item = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("li", {padding:"6px", margin:"6px"}); + item.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("p", { innerText:factionName, display:"inline", margin:"4px", padding:"4px" })); - item.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { + item.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { innerText:"Accept Faction Invitation", class:"a-link-button", display:"inline", margin:"4px", padding:"4px", clickListener:()=>{ - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["joinFaction"])(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["Factions"][factionName]); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations[i] == factionName || _Faction_js__WEBPACK_IMPORTED_MODULE_15__["Factions"][_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations[i]].isBanned) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations.splice(i, 1); + Object(_Faction__WEBPACK_IMPORTED_MODULE_15__["joinFaction"])(_Faction__WEBPACK_IMPORTED_MODULE_15__["Factions"][factionName]); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations[i] == factionName || _Faction__WEBPACK_IMPORTED_MODULE_15__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations[i]].isBanned) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].factionInvitations.splice(i, 1); i--; } } @@ -6651,7 +6659,7 @@ let Engine = { if (diff > 0) { //Update the game engine by the calculated number of cycles Engine._lastUpdate = _thisUpdate - offset; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].lastUpdate = _thisUpdate - offset; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].lastUpdate = _thisUpdate - offset; Engine.updateGame(diff); } @@ -6661,60 +6669,60 @@ let Engine = { updateGame: function(numCycles = 1) { //Update total playtime var time = numCycles * Engine._idleSpeed; - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime = 0;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug = 0;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode = 0;} - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime += time; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug += time; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode += time; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime = 0;} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug = 0;} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode = 0;} + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime += time; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug += time; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode += time; //Start Manual hack - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].startAction == true) { - Engine._totalActionTime = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].actionTime; - Engine._actionTimeLeft = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].actionTime; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].startAction == true) { + Engine._totalActionTime = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].actionTime; + Engine._actionTimeLeft = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].actionTime; Engine._actionInProgress = true; Engine._actionProgressBarCount = 1; Engine._actionProgressStr = "[ ]"; Engine._actionTimeStr = "Time left: "; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].startAction = false; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].startAction = false; } //Working - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeFaction) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workForFaction(numCycles); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCreateProgram) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].createProgramWork(numCycles); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeStudyClass) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].takeClass(numCycles); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCrime) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].commitCrime(numCycles); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCompanyPartTime) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workPartTime(numCycles); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeFaction) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workForFaction(numCycles); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCreateProgram) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].createProgramWork(numCycles); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeStudyClass) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].takeClass(numCycles); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCrime) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].commitCrime(numCycles); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCompanyPartTime) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workPartTime(numCycles); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].work(numCycles); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].work(numCycles); } } //Gang, if applicable - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN == 2 && _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].inGang()) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gang.process(numCycles); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].inGang()) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gang.process(numCycles); } //Mission - if (_Missions_js__WEBPACK_IMPORTED_MODULE_23__["inMission"] && _Missions_js__WEBPACK_IMPORTED_MODULE_23__["currMission"]) { - _Missions_js__WEBPACK_IMPORTED_MODULE_23__["currMission"].process(numCycles); + if (_Missions__WEBPACK_IMPORTED_MODULE_23__["inMission"] && _Missions__WEBPACK_IMPORTED_MODULE_23__["currMission"]) { + _Missions__WEBPACK_IMPORTED_MODULE_23__["currMission"].process(numCycles); } //Corporation - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { //Stores cycles in a "buffer". Processed separately using Engine Counters //This is to avoid constant DOM redraws when Corporation is catching up - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.storeCycles(numCycles); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.storeCycles(numCycles); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.storeCycles(numCycles); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.storeCycles(numCycles); } //Counters @@ -6727,10 +6735,10 @@ let Engine = { } //Update the running time of all active scripts - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_25__["updateOnlineScriptTimes"])(numCycles); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_25__["updateOnlineScriptTimes"])(numCycles); //Hacknet Nodes - Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_19__["processAllHacknetNodeEarnings"])(numCycles); + Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_19__["processAllHacknetNodeEarnings"])(numCycles); }, //Counters for the main event loop. Represent the number of game cycles are required @@ -6763,25 +6771,25 @@ let Engine = { //is necessary and then resets the counter checkCounters: function() { if (Engine.Counters.autoSaveCounter <= 0) { - _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["saveObject"].saveGame(indexedDb); - if (_Settings_js__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval == null) { - _Settings_js__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval = 60; + _SaveObject__WEBPACK_IMPORTED_MODULE_29__["saveObject"].saveGame(indexedDb); + if (_Settings__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval == null) { + _Settings__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval = 60; } - if (_Settings_js__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval === 0) { + if (_Settings__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval === 0) { Engine.Counters.autoSaveCounter = Infinity; } else { - Engine.Counters.autoSaveCounter = _Settings_js__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval * 5; + Engine.Counters.autoSaveCounter = _Settings__WEBPACK_IMPORTED_MODULE_32__["Settings"].AutosaveInterval * 5; } } if (Engine.Counters.updateSkillLevelsCounter <= 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); Engine.Counters.updateSkillLevelsCounter = 10; } if (Engine.Counters.updateActiveScriptsDisplay <= 0) { //Always update, but make the interval longer if the page isn't active - Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_6__["updateActiveScriptsItems"])(); + Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_6__["updateActiveScriptsItems"])(); if (Engine.currentPage === Engine.Page.ActiveScripts) { Engine.Counters.updateActiveScriptsDisplay = 5; } else { @@ -6794,13 +6802,13 @@ let Engine = { if (Engine.currentPage == Engine.Page.CharacterInfo) { Engine.displayCharacterInfo(); } else if (Engine.currentPage == Engine.Page.HacknetNodes) { - Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_19__["updateHacknetNodesContent"])(); + Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_19__["updateHacknetNodesContent"])(); } else if (Engine.currentPage == Engine.Page.CreateProgram) { - Object(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["displayCreateProgramContent"])(); + Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_14__["displayCreateProgramContent"])(); } - if (_utils_LogBox_js__WEBPACK_IMPORTED_MODULE_5__["logBoxOpened"]) { - Object(_utils_LogBox_js__WEBPACK_IMPORTED_MODULE_5__["logBoxUpdateText"])(); + if (_utils_LogBox__WEBPACK_IMPORTED_MODULE_5__["logBoxOpened"]) { + Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_5__["logBoxUpdateText"])(); } Engine.Counters.updateDisplays = 3; @@ -6808,22 +6816,22 @@ let Engine = { if (Engine.Counters.updateDisplaysMed <= 0) { if (Engine.currentPage === Engine.Page.Corporation) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.updateUIContent(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.updateUIContent(); } Engine.Counters.updateDisplaysMed = 9; } if (Engine.Counters.updateDisplaysLong <= 0) { if (Engine.currentPage === Engine.Page.Gang) { - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_18__["updateGangContent"])(); + Object(_Gang__WEBPACK_IMPORTED_MODULE_18__["updateGangContent"])(); } else if (Engine.currentPage === Engine.Page.ScriptEditor) { - Object(_Script_js__WEBPACK_IMPORTED_MODULE_30__["updateScriptEditorContent"])(); + Object(_Script__WEBPACK_IMPORTED_MODULE_30__["updateScriptEditorContent"])(); } Engine.Counters.updateDisplaysLong = 15; } if (Engine.Counters.createProgramNotifications <= 0) { - var num = Object(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["getNumAvailableCreateProgram"])(); + var num = Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_14__["getNumAvailableCreateProgram"])(); var elem = document.getElementById("create-program-notification"); if (num > 0) { elem.innerHTML = num; @@ -6836,30 +6844,30 @@ let Engine = { } if (Engine.Counters.checkFactionInvitations <= 0) { - var invitedFactions = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].checkForFactionInvitations(); + var invitedFactions = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].checkForFactionInvitations(); if (invitedFactions.length > 0) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstFacInvRecvd === false) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstFacInvRecvd = true; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstFacInvRecvd === false) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstFacInvRecvd = true; document.getElementById("factions-tab").style.display = "list-item"; document.getElementById("character-menu-header").click(); document.getElementById("character-menu-header").click(); } var randFaction = invitedFactions[Math.floor(Math.random() * invitedFactions.length)]; - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["inviteToFaction"])(randFaction); + Object(_Faction__WEBPACK_IMPORTED_MODULE_15__["inviteToFaction"])(randFaction); } Engine.Counters.checkFactionInvitations = 100; } if (Engine.Counters.passiveFactionGrowth <= 0) { var adjustedCycles = Math.floor((600 - Engine.Counters.passiveFactionGrowth)); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["processPassiveFactionRepGain"])(adjustedCycles); + Object(_Faction__WEBPACK_IMPORTED_MODULE_15__["processPassiveFactionRepGain"])(adjustedCycles); Engine.Counters.passiveFactionGrowth = 600; } if (Engine.Counters.messages <= 0) { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_22__["checkForMessagesToSend"])(); - if (_Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"].TheRedPill].owned) { + Object(_Message__WEBPACK_IMPORTED_MODULE_22__["checkForMessagesToSend"])(); + if (_Augmentations__WEBPACK_IMPORTED_MODULE_7__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"].TheRedPill].owned) { Engine.Counters.messages = 4500; //15 minutes for Red pill message } else { Engine.Counters.messages = 150; @@ -6867,28 +6875,28 @@ let Engine = { } if (Engine.Counters.stockTick <= 0) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hasWseAccount) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_35__["updateStockPrices"])(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hasWseAccount) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_35__["updateStockPrices"])(); } Engine.Counters.stockTick = 30; } if (Engine.Counters.sCr <= 0) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hasWseAccount) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_35__["stockMarketCycle"])(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hasWseAccount) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_35__["stockMarketCycle"])(); } Engine.Counters.sCr = 1500; } if (Engine.Counters.mechanicProcess <= 0) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement_js__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.process(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation instanceof _CompanyManagement__WEBPACK_IMPORTED_MODULE_12__["Corporation"]) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].corporation.process(); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { try { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.process(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.process(); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["exceptionAlert"])("Exception caught in Bladeburner.process(): " + e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["exceptionAlert"])("Exception caught in Bladeburner.process(): " + e); } } @@ -6927,7 +6935,7 @@ let Engine = { //Once percent is 100, the hack is completed if (percent >= 100) { Engine._actionInProgress = false; - _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["Terminal"].finishAction(); + _Terminal__WEBPACK_IMPORTED_MODULE_36__["Terminal"].finishAction(); } }, @@ -7023,114 +7031,114 @@ let Engine = { var dev = document.getElementById("dev-tab"); //Load game from save or create new game - if (Object(_SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["loadGame"])(saveString)) { + if (Object(_SaveObject__WEBPACK_IMPORTED_MODULE_29__["loadGame"])(saveString)) { console.log("Loaded game from save"); - Object(_BitNode_js__WEBPACK_IMPORTED_MODULE_8__["initBitNodes"])(); - Object(_BitNode_js__WEBPACK_IMPORTED_MODULE_8__["initBitNodeMultipliers"])(); - Object(_SourceFile_js__WEBPACK_IMPORTED_MODULE_33__["initSourceFiles"])(); + Object(_BitNode__WEBPACK_IMPORTED_MODULE_8__["initBitNodes"])(); + Object(_BitNode__WEBPACK_IMPORTED_MODULE_8__["initBitNodeMultipliers"])(); + Object(_SourceFile__WEBPACK_IMPORTED_MODULE_33__["initSourceFiles"])(); Engine.setDisplayElements(); //Sets variables for important DOM elements Engine.init(); //Initialize buttons, work, etc. - _Company_js__WEBPACK_IMPORTED_MODULE_11__["CompanyPositions"].init(); - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["initAugmentations"])(); //Also calls Player.reapplyAllAugmentations() - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].reapplyAllSourceFiles(); - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_35__["initStockSymbols"])(); - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hasWseAccount) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_35__["initSymbolToStockMap"])(); + _Company__WEBPACK_IMPORTED_MODULE_11__["CompanyPositions"].init(); + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_7__["initAugmentations"])(); //Also calls Player.reapplyAllAugmentations() + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].reapplyAllSourceFiles(); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_35__["initStockSymbols"])(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hasWseAccount) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_35__["initSymbolToStockMap"])(); } - Object(_Literature_js__WEBPACK_IMPORTED_MODULE_21__["initLiterature"])(); - Object(_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_24__["initSingularitySFFlags"])(); + Object(_Literature__WEBPACK_IMPORTED_MODULE_21__["initLiterature"])(); + Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_24__["initSingularitySFFlags"])(); - console.log(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence_exp); + console.log(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence_exp); //Calculate the number of cycles have elapsed while offline Engine._lastUpdate = new Date().getTime(); - var lastUpdate = _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].lastUpdate; + var lastUpdate = _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].lastUpdate; var numCyclesOffline = Math.floor((Engine._lastUpdate - lastUpdate) / Engine._idleSpeed); /* Process offline progress */ - var offlineProductionFromScripts = Object(_Script_js__WEBPACK_IMPORTED_MODULE_30__["loadAllRunningScripts"])(); //This also takes care of offline production for those scripts - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking) { + var offlineProductionFromScripts = Object(_Script__WEBPACK_IMPORTED_MODULE_30__["loadAllRunningScripts"])(); //This also takes care of offline production for those scripts + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking) { console.log("work() called in load() for " + numCyclesOffline * Engine._idleSpeed + " milliseconds"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeFaction) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workForFaction(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCreateProgram) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].createProgramWork(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeStudyClass) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].takeClass(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCrime) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].commitCrime(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCompanyPartTime) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workPartTime(numCyclesOffline); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeFaction) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workForFaction(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCreateProgram) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].createProgramWork(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeStudyClass) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].takeClass(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCrime) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].commitCrime(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCompanyPartTime) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workPartTime(numCyclesOffline); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].work(numCyclesOffline); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].work(numCyclesOffline); } } //Hacknet Nodes offline progress - var offlineProductionFromHacknetNodes = Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_19__["processAllHacknetNodeEarnings"])(numCyclesOffline); + var offlineProductionFromHacknetNodes = Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_19__["processAllHacknetNodeEarnings"])(numCyclesOffline); //Passive faction rep gain offline - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["processPassiveFactionRepGain"])(numCyclesOffline); + Object(_Faction__WEBPACK_IMPORTED_MODULE_15__["processPassiveFactionRepGain"])(numCyclesOffline); //Gang progress for BitNode 2 - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN != null && _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN === 2 && _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].inGang()) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gang.process(numCyclesOffline); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN != null && _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN === 2 && _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].inGang()) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gang.process(numCyclesOffline); } //Bladeburner offline progress - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.storeCycles(numCyclesOffline); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_9__["Bladeburner"]) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bladeburner.storeCycles(numCyclesOffline); } //Update total playtime var time = numCyclesOffline * Engine._idleSpeed; - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime = 0;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug = 0;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode == null) {_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode = 0;} - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime += time; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug += time; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode += time; + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime = 0;} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug = 0;} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode = 0;} + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].totalPlaytime += time; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastAug += time; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].playtimeSinceLastBitnode += time; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].lastUpdate = Engine._lastUpdate; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].lastUpdate = Engine._lastUpdate; Engine.start(); //Run main game loop and Scripts loop Engine.removeLoadingScreen(); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("While you were offline, your scripts generated $" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("While you were offline, your scripts generated $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(offlineProductionFromScripts, 2) + " and your Hacknet Nodes generated $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_4__["formatNumber"])(offlineProductionFromHacknetNodes, 2)); //Close main menu accordions for loaded game var visibleMenuTabs = [terminal, createScript, activeScripts, stats, hacknetnodes, city, tutorial, options, dev]; - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstFacInvRecvd) {visibleMenuTabs.push(factions);} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstFacInvRecvd) {visibleMenuTabs.push(factions);} else {factions.style.display = "none";} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstAugPurchased) {visibleMenuTabs.push(augmentations);} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstAugPurchased) {visibleMenuTabs.push(augmentations);} else {augmentations.style.display = "none";} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstJobRecvd) {visibleMenuTabs.push(job);} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstJobRecvd) {visibleMenuTabs.push(job);} else {job.style.display = "none";} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstTimeTraveled) {visibleMenuTabs.push(travel);} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstTimeTraveled) {visibleMenuTabs.push(travel);} else {travel.style.display = "none";} - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].firstProgramAvailable) {visibleMenuTabs.push(createProgram);} + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].firstProgramAvailable) {visibleMenuTabs.push(createProgram);} else {createProgram.style.display = "none";} Engine.closeMainMenuHeader(visibleMenuTabs); } else { //No save found, start new game console.log("Initializing new game"); - Object(_BitNode_js__WEBPACK_IMPORTED_MODULE_8__["initBitNodes"])(); - Object(_BitNode_js__WEBPACK_IMPORTED_MODULE_8__["initBitNodeMultipliers"])(); - Object(_SourceFile_js__WEBPACK_IMPORTED_MODULE_33__["initSourceFiles"])(); - Object(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_34__["initSpecialServerIps"])(); + Object(_BitNode__WEBPACK_IMPORTED_MODULE_8__["initBitNodes"])(); + Object(_BitNode__WEBPACK_IMPORTED_MODULE_8__["initBitNodeMultipliers"])(); + Object(_SourceFile__WEBPACK_IMPORTED_MODULE_33__["initSourceFiles"])(); + Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_34__["initSpecialServerIps"])(); Engine.setDisplayElements(); //Sets variables for important DOM elements Engine.start(); //Run main game loop and Scripts loop - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].init(); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_31__["initForeignServers"])(); - Object(_Company_js__WEBPACK_IMPORTED_MODULE_11__["initCompanies"])(); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["initFactions"])(); - _Company_js__WEBPACK_IMPORTED_MODULE_11__["CompanyPositions"].init(); - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["initAugmentations"])(); - Object(_Message_js__WEBPACK_IMPORTED_MODULE_22__["initMessages"])(); - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_35__["initStockSymbols"])(); - Object(_Literature_js__WEBPACK_IMPORTED_MODULE_21__["initLiterature"])(); - Object(_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_24__["initSingularitySFFlags"])(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].init(); + Object(_Server__WEBPACK_IMPORTED_MODULE_31__["initForeignServers"])(); + Object(_Company__WEBPACK_IMPORTED_MODULE_11__["initCompanies"])(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_15__["initFactions"])(); + _Company__WEBPACK_IMPORTED_MODULE_11__["CompanyPositions"].init(); + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_7__["initAugmentations"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_22__["initMessages"])(); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_35__["initStockSymbols"])(); + Object(_Literature__WEBPACK_IMPORTED_MODULE_21__["initLiterature"])(); + Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_24__["initSingularitySFFlags"])(); //Open main menu accordions for new game //Main menu accordions @@ -7157,13 +7165,13 @@ let Engine = { ); //Start interactive tutorial - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_20__["iTutorialStart"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_20__["iTutorialStart"])(); Engine.removeLoadingScreen(); } //Initialize labels on game settings - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_32__["setSettingsLabels"])(); - Object(_Script_js__WEBPACK_IMPORTED_MODULE_30__["scriptEditorInit"])(); - _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["Terminal"].resetTerminalInput(); + Object(_Settings__WEBPACK_IMPORTED_MODULE_32__["setSettingsLabels"])(); + Object(_Script__WEBPACK_IMPORTED_MODULE_30__["scriptEditorInit"])(); + _Terminal__WEBPACK_IMPORTED_MODULE_36__["Terminal"].resetTerminalInput(); }, setDisplayElements: function() { @@ -7248,47 +7256,47 @@ let Engine = { Engine.Display.cinematicTextContent.style.display = "none"; //Init Location buttons - Object(_Location_js__WEBPACK_IMPORTED_MODULE_17__["initLocationButtons"])(); + Object(_Location__WEBPACK_IMPORTED_MODULE_17__["initLocationButtons"])(); //Tutorial buttons Engine.Clickables.tutorialNetworkingButton = document.getElementById("tutorial-networking-link"); Engine.Clickables.tutorialNetworkingButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialNetworkingText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialNetworkingText); }); Engine.Clickables.tutorialHackingButton = document.getElementById("tutorial-hacking-link"); Engine.Clickables.tutorialHackingButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialHackingText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialHackingText); }); Engine.Clickables.tutorialScriptsButton = document.getElementById("tutorial-scripts-link"); Engine.Clickables.tutorialScriptsButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialScriptsText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialScriptsText); }); Engine.Clickables.tutorialNetscriptButton = document.getElementById("tutorial-netscript-link"); Engine.Clickables.tutorialNetscriptButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialNetscriptText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialNetscriptText); }); Engine.Clickables.tutorialTravelingButton = document.getElementById("tutorial-traveling-link"); Engine.Clickables.tutorialTravelingButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialTravelingText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialTravelingText); }); Engine.Clickables.tutorialCompaniesButton = document.getElementById("tutorial-jobs-link"); Engine.Clickables.tutorialCompaniesButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialCompaniesText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialCompaniesText); }); Engine.Clickables.tutorialFactionsButton = document.getElementById("tutorial-factions-link"); Engine.Clickables.tutorialFactionsButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialFactionsText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialFactionsText); }); Engine.Clickables.tutorialAugmentationsButton = document.getElementById("tutorial-augmentations-link"); Engine.Clickables.tutorialAugmentationsButton.addEventListener("click", function() { - Engine.displayTutorialPage(_Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialAugmentationsText); + Engine.displayTutorialPage(_Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].TutorialAugmentationsText); }); Engine.Clickables.tutorialBackButton = document.getElementById("tutorial-back-button"); @@ -7299,92 +7307,92 @@ let Engine = { // dev menu buttons Engine.Clickables.devMenuGiveMoney = document.getElementById("dev-need-money"); Engine.Clickables.devMenuGiveMoney.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainMoney(1e15); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainMoney(1e15); }); Engine.Clickables.devMenuGiveRam = document.getElementById("dev-need-ram"); Engine.Clickables.devMenuGiveRam.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].getHomeComputer().maxRam *= 2; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].getHomeComputer().maxRam *= 2; }); Engine.Clickables.devMenuAugDropdown = document.getElementById("dev-menu-aug-dropdown"); const augDD = Engine.Clickables.devMenuAugDropdown; - for(const i in _Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"]) { - augDD.options[augDD.options.length] = new Option(_Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"][i], _Augmentations_js__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"][i]); + for(const i in _Augmentations__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"]) { + augDD.options[augDD.options.length] = new Option(_Augmentations__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"][i], _Augmentations__WEBPACK_IMPORTED_MODULE_7__["AugmentationNames"][i]); } Engine.Clickables.devMenuAddAug = document.getElementById("dev-add-aug"); Engine.Clickables.devMenuAddAug.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].queueAugmentation(augDD.options[augDD.selectedIndex].value); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].queueAugmentation(augDD.options[augDD.selectedIndex].value); }); Engine.Clickables.devMenuTriggerBitFlume = document.getElementById("dev-bit-flume"); Engine.Clickables.devMenuTriggerBitFlume.addEventListener("click", function() { - Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_28__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN, true); + Object(_RedPill__WEBPACK_IMPORTED_MODULE_28__["hackWorldDaemon"])(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].bitNodeN, true); }); Engine.Clickables.devMenuFactionDropdown = document.getElementById("dev-menu-faction-dropdown"); const facDD = Engine.Clickables.devMenuFactionDropdown; - for(const i in _Faction_js__WEBPACK_IMPORTED_MODULE_15__["Factions"]) { - facDD.options[facDD.options.length] = new Option(_Faction_js__WEBPACK_IMPORTED_MODULE_15__["Factions"][i].name, _Faction_js__WEBPACK_IMPORTED_MODULE_15__["Factions"][i].name); + for(const i in _Faction__WEBPACK_IMPORTED_MODULE_15__["Factions"]) { + facDD.options[facDD.options.length] = new Option(_Faction__WEBPACK_IMPORTED_MODULE_15__["Factions"][i].name, _Faction__WEBPACK_IMPORTED_MODULE_15__["Factions"][i].name); } Engine.Clickables.devMenuAddFaction = document.getElementById("dev-add-faction"); Engine.Clickables.devMenuAddFaction.addEventListener("click", function() { const factionName = facDD.options[facDD.selectedIndex].value; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].receiveInvite(factionName); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].receiveInvite(factionName); }); Engine.Clickables.devMenuOpen = document.getElementById("dev-open-all"); Engine.Clickables.devMenuOpen.addEventListener("click", function() { - for(const i in _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hasAdminRights = true; - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].sshPortOpen = true; - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].ftpPortOpen = true; - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].smtpPortOpen = true; - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].httpPortOpen = true; - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].sqlPortOpen = true; - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].openPortCount = 5; + for(const i in _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hasAdminRights = true; + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].sshPortOpen = true; + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].ftpPortOpen = true; + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].smtpPortOpen = true; + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].httpPortOpen = true; + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].sqlPortOpen = true; + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].openPortCount = 5; } }); Engine.Clickables.devMenuMinSecurity = document.getElementById("dev-min-security"); Engine.Clickables.devMenuMinSecurity.addEventListener("click", function() { - for(const i in _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hackDifficulty = _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].minDifficulty; + for(const i in _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hackDifficulty = _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].minDifficulty; } }); Engine.Clickables.devMenuMaxMoney = document.getElementById("dev-max-money"); Engine.Clickables.devMenuMaxMoney.addEventListener("click", function() { - for(const i in _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { - _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].moneyAvailable = _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].moneyMax; + for(const i in _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { + _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].moneyAvailable = _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].moneyMax; } }); Engine.Clickables.devMenuConnectDropdown = document.getElementById("dev-menu-connect-dropdown"); const connectDD = Engine.Clickables.devMenuConnectDropdown; - for(const i in _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { - connectDD.options[connectDD.options.length] = new Option(_Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hostname, _Server_js__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hostname); + for(const i in _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"]) { + connectDD.options[connectDD.options.length] = new Option(_Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hostname, _Server__WEBPACK_IMPORTED_MODULE_31__["AllServers"][i].hostname); } Engine.Clickables.devMenuConnect = document.getElementById("dev-connect"); Engine.Clickables.devMenuConnect.addEventListener("click", function() { const host = connectDD.options[connectDD.selectedIndex].value; - _Terminal_js__WEBPACK_IMPORTED_MODULE_36__["Terminal"].connectToServer(host); + _Terminal__WEBPACK_IMPORTED_MODULE_36__["Terminal"].connectToServer(host); }); Engine.Clickables.devMenuProgramsDropdown = document.getElementById("dev-menu-add-program-dropdown"); const programsDD = Engine.Clickables.devMenuProgramsDropdown; - for(const i in _CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["Programs"]) { - programsDD.options[programsDD.options.length] = new Option(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["Programs"][i], _CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["Programs"][i]); + for(const i in _CreateProgram__WEBPACK_IMPORTED_MODULE_14__["Programs"]) { + programsDD.options[programsDD.options.length] = new Option(_CreateProgram__WEBPACK_IMPORTED_MODULE_14__["Programs"][i], _CreateProgram__WEBPACK_IMPORTED_MODULE_14__["Programs"][i]); } Engine.Clickables.devMenuAddProgram = document.getElementById("dev-add-program"); Engine.Clickables.devMenuAddProgram.addEventListener("click", function() { const program = programsDD.options[programsDD.selectedIndex].value;; - if(!_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].hasProgram(program)) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].getHomeComputer().programs.push(program); + if(!_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].hasProgram(program)) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].getHomeComputer().programs.push(program); } }); @@ -7392,66 +7400,66 @@ let Engine = { Engine.Clickables.devMenuAddHacking = document.getElementById("dev-add-hacking"); Engine.Clickables.devMenuAddHacking.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuHackingExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainHackingExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainHackingExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuStrengthExp = document.getElementById("dev-strength-exp"); Engine.Clickables.devMenuAddStrength = document.getElementById("dev-add-strength"); Engine.Clickables.devMenuAddStrength.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuStrengthExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainStrengthExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainStrengthExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuDefenseExp = document.getElementById("dev-defense-exp"); Engine.Clickables.devMenuAddDefense = document.getElementById("dev-add-defense"); Engine.Clickables.devMenuAddDefense.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuDefenseExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainDefenseExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainDefenseExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuDexterityExp = document.getElementById("dev-dexterity-exp"); Engine.Clickables.devMenuAddDexterity = document.getElementById("dev-add-dexterity"); Engine.Clickables.devMenuAddDexterity.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuDexterityExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainDexterityExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainDexterityExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuAgilityExp = document.getElementById("dev-agility-exp"); Engine.Clickables.devMenuAddAgility = document.getElementById("dev-add-agility"); Engine.Clickables.devMenuAddAgility.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuAgilityExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainAgilityExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainAgilityExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuCharismaExp = document.getElementById("dev-charisma-exp"); Engine.Clickables.devMenuAddCharisma = document.getElementById("dev-add-charisma"); Engine.Clickables.devMenuAddCharisma.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuCharismaExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainCharismaExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainCharismaExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuIntelligenceExp = document.getElementById("dev-intelligence-exp"); Engine.Clickables.devMenuAddIntelligence = document.getElementById("dev-add-intelligence"); Engine.Clickables.devMenuAddIntelligence.addEventListener("click", function() { const exp = parseInt(Engine.Clickables.devMenuIntelligenceExp.value); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].gainIntelligenceExp(exp); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].gainIntelligenceExp(exp); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].updateSkillLevels(); }); Engine.Clickables.devMenuEnableIntelligence = document.getElementById("dev-enable-intelligence"); Engine.Clickables.devMenuEnableIntelligence.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence = 1; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence = 1; }); Engine.Clickables.devMenuDisableIntelligence = document.getElementById("dev-disable-intelligence"); Engine.Clickables.devMenuDisableIntelligence.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence = 0; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].intelligence = 0; }); Engine.Clickables.devMenuSFN = document.getElementById("dev-sf-n"); @@ -7461,22 +7469,22 @@ let Engine = { const sfN = parseInt(Engine.Clickables.devMenuSFN.value); const sfLvl = parseInt(Engine.Clickables.devMenuSFLvl.value); let sfIndex = -1; - for(const i in _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles) { - if(_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles[i].n === sfN) { + for(const i in _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles) { + if(_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles[i].n === sfN) { sfIndex = i; break; } } if(sfIndex === -1) { // add fresh source file - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.push(new _SourceFile_js__WEBPACK_IMPORTED_MODULE_33__["PlayerOwnedSourceFile"](sfN, sfLvl)); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.push(new _SourceFile__WEBPACK_IMPORTED_MODULE_33__["PlayerOwnedSourceFile"](sfN, sfLvl)); } else if(sfLvl === 0) { // remove a source file. if(sfIndex === -1) { // doesn't have it anyway. return; } - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.splice(sfIndex, 1); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles.splice(sfIndex, 1); } else { // set source file level - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles[sfIndex].lvl=sfLvl; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].sourceFiles[sfIndex].lvl=sfLvl; } }); }, @@ -7485,7 +7493,7 @@ let Engine = { init: function() { //Import game link document.getElementById("import-game-link").onclick = function() { - _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["saveObject"].importGame(); + _SaveObject__WEBPACK_IMPORTED_MODULE_29__["saveObject"].importGame(); }; //Main menu accordions @@ -7586,80 +7594,80 @@ let Engine = { } //Main menu buttons and content - Engine.Clickables.terminalMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("terminal-menu-link"); + Engine.Clickables.terminalMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("terminal-menu-link"); Engine.Clickables.terminalMainMenuButton.addEventListener("click", function() { Engine.loadTerminalContent(); return false; }); - Engine.Clickables.characterMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("stats-menu-link"); + Engine.Clickables.characterMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("stats-menu-link"); Engine.Clickables.characterMainMenuButton.addEventListener("click", function() { Engine.loadCharacterContent(); return false; }); - Engine.Clickables.scriptEditorMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("create-script-menu-link"); + Engine.Clickables.scriptEditorMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("create-script-menu-link"); Engine.Clickables.scriptEditorMainMenuButton.addEventListener("click", function() { Engine.loadScriptEditorContent(); return false; }); - Engine.Clickables.activeScriptsMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("active-scripts-menu-link"); + Engine.Clickables.activeScriptsMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("active-scripts-menu-link"); Engine.Clickables.activeScriptsMainMenuButton.addEventListener("click", function() { Engine.loadActiveScriptsContent(); return false; }); - Engine.Clickables.hacknetNodesMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("hacknet-nodes-menu-link"); + Engine.Clickables.hacknetNodesMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("hacknet-nodes-menu-link"); Engine.Clickables.hacknetNodesMainMenuButton.addEventListener("click", function() { Engine.loadHacknetNodesContent(); return false; }); - Engine.Clickables.worldMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("city-menu-link"); + Engine.Clickables.worldMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("city-menu-link"); Engine.Clickables.worldMainMenuButton.addEventListener("click", function() { Engine.loadWorldContent(); return false; }); - Engine.Clickables.travelMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("travel-menu-link"); + Engine.Clickables.travelMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("travel-menu-link"); Engine.Clickables.travelMainMenuButton.addEventListener("click", function() { Engine.loadTravelContent(); return false; }); - Engine.Clickables.jobMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("job-menu-link"); + Engine.Clickables.jobMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("job-menu-link"); Engine.Clickables.jobMainMenuButton.addEventListener("click", function() { Engine.loadJobContent(); return false; }); - Engine.Clickables.createProgramMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("create-program-menu-link"); + Engine.Clickables.createProgramMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("create-program-menu-link"); Engine.Clickables.createProgramMainMenuButton.addEventListener("click", function() { Engine.loadCreateProgramContent(); return false; }); - Engine.Clickables.factionsMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("factions-menu-link"); + Engine.Clickables.factionsMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("factions-menu-link"); Engine.Clickables.factionsMainMenuButton.addEventListener("click", function() { Engine.loadFactionsContent(); return false; }); - Engine.Clickables.augmentationsMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("augmentations-menu-link"); + Engine.Clickables.augmentationsMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("augmentations-menu-link"); Engine.Clickables.augmentationsMainMenuButton.addEventListener("click", function() { Engine.loadAugmentationsContent(); return false; }); - Engine.Clickables.tutorialMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("tutorial-menu-link"); + Engine.Clickables.tutorialMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("tutorial-menu-link"); Engine.Clickables.tutorialMainMenuButton.addEventListener("click", function() { Engine.loadTutorialContent(); return false; }); - Engine.Clickables.devMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("dev-menu-link"); + Engine.Clickables.devMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["clearEventListeners"])("dev-menu-link"); Engine.Clickables.devMainMenuButton.addEventListener("click", function() { Engine.loadDevMenuContent(); return false; @@ -7671,55 +7679,55 @@ let Engine = { //Save, Delete, Import/Export buttons Engine.Clickables.saveMainMenuButton = document.getElementById("save-game-link"); Engine.Clickables.saveMainMenuButton.addEventListener("click", function() { - _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["saveObject"].saveGame(indexedDb); + _SaveObject__WEBPACK_IMPORTED_MODULE_29__["saveObject"].saveGame(indexedDb); return false; }); Engine.Clickables.deleteMainMenuButton = document.getElementById("delete-game-link"); Engine.Clickables.deleteMainMenuButton.addEventListener("click", function() { - _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["saveObject"].deleteGame(indexedDb); + _SaveObject__WEBPACK_IMPORTED_MODULE_29__["saveObject"].deleteGame(indexedDb); return false; }); document.getElementById("export-game-link").addEventListener("click", function() { - _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["saveObject"].exportGame(); + _SaveObject__WEBPACK_IMPORTED_MODULE_29__["saveObject"].exportGame(); return false; }); //Character Overview buttons document.getElementById("character-overview-save-button").addEventListener("click", function() { - _SaveObject_js__WEBPACK_IMPORTED_MODULE_29__["saveObject"].saveGame(indexedDb); + _SaveObject__WEBPACK_IMPORTED_MODULE_29__["saveObject"].saveGame(indexedDb); return false; }); document.getElementById("character-overview-options-button").addEventListener("click", function() { - Object(_utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxOpen"])(); + Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxOpen"])(); return false; }); //Create Program buttons - Object(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_14__["initCreateProgramButtons"])(); + Object(_CreateProgram__WEBPACK_IMPORTED_MODULE_14__["initCreateProgramButtons"])(); //Message at the top of terminal - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_36__["postNetburnerText"])(); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_36__["postNetburnerText"])(); //Player was working cancel button - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking) { + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].isWorking) { var cancelButton = document.getElementById("work-in-progress-cancel-button"); cancelButton.addEventListener("click", function() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeFaction) { - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_15__["Factions"][_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].currentWorkFactionName]; - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].finishFactionWork(true); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCreateProgram) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].finishCreateProgramWork(true); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeStudyClass) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].finishClass(); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCrime) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].finishCrime(true); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCompanyPartTime) { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].finishWorkPartTime(); + if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeFaction) { + var fac = _Faction__WEBPACK_IMPORTED_MODULE_15__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].currentWorkFactionName]; + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].finishFactionWork(true); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCreateProgram) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].finishCreateProgramWork(true); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeStudyClass) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].finishClass(); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCrime) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].finishCrime(true); + } else if (_Player__WEBPACK_IMPORTED_MODULE_26__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_13__["CONSTANTS"].WorkTypeCompanyPartTime) { + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].finishWorkPartTime(); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].finishWork(true); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].finishWork(true); } }); Engine.loadWorkInProgressContent(); @@ -7740,17 +7748,17 @@ let Engine = { //DEBUG Delete active Scripts on home document.getElementById("debug-delete-scripts-link").addEventListener("click", function() { console.log("Deleting running scripts on home computer"); - _Player_js__WEBPACK_IMPORTED_MODULE_26__["Player"].getHomeComputer().runningScripts = []; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("Forcefully deleted all running scripts on home computer. Please save and refresh page"); - Object(_utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxClose"])(); + _Player__WEBPACK_IMPORTED_MODULE_26__["Player"].getHomeComputer().runningScripts = []; + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("Forcefully deleted all running scripts on home computer. Please save and refresh page"); + Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxClose"])(); return false; }); //DEBUG Soft Reset document.getElementById("debug-soft-reset").addEventListener("click", function() { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("Soft Reset!"); - Object(_Prestige_js__WEBPACK_IMPORTED_MODULE_27__["prestigeAugmentation"])(); - Object(_utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxClose"])(); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])("Soft Reset!"); + Object(_Prestige__WEBPACK_IMPORTED_MODULE_27__["prestigeAugmentation"])(); + Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_1__["gameOptionsBoxClose"])(); return false; }); }, @@ -7760,7 +7768,7 @@ let Engine = { Engine.idleTimer(); //Scripts - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_25__["runScriptsLoop"])(); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_25__["runScriptsLoop"])(); } }; @@ -7829,18 +7837,18 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isScriptErrorMessage", function() { return isScriptErrorMessage; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "killNetscriptDelay", function() { return killNetscriptDelay; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "evaluateImport", function() { return evaluateImport; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _NetscriptEnvironment_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment.js */ 67); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/acorn.js */ 35); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 67); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/acorn */ 35); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_8__); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/IPAddress */ 15); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__); @@ -7871,7 +7879,7 @@ Promise.config({ * Returns a promise */ function evaluate(exp, workerScript) { - return Promise.delay(_Settings_js__WEBPACK_IMPORTED_MODULE_6__["Settings"].CodeInstructionRunTime).then(function() { + return Promise.delay(_Settings__WEBPACK_IMPORTED_MODULE_6__["Settings"].CodeInstructionRunTime).then(function() { var env = workerScript.env; if (env.stopFlag) {return Promise.reject(workerScript);} if (exp == null) { @@ -7890,7 +7898,7 @@ function evaluate(exp, workerScript) { } else if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["isString"])(e)) { workerScript.errorMessage = e; return Promise.reject(workerScript); - } else if (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]) { + } else if (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]) { return Promise.reject(e); } else { return Promise.reject(workerScript); @@ -7927,7 +7935,7 @@ function evaluate(exp, workerScript) { return Promise.map(exp.arguments, function(arg) { return evaluate(arg, workerScript); }).then(function(args) { - if (func instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_8__["Node"]) { //Player-defined function + if (func instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_8__["Node"]) { //Player-defined function //Create new Environment for the function //Should be automatically garbage collected... var funcEnv = env.extend(); @@ -7944,7 +7952,7 @@ function evaluate(exp, workerScript) { } //Create a new WorkerScript for this function evaluation - var funcWorkerScript = new _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"](workerScript.scriptRef); + var funcWorkerScript = new _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"](workerScript.scriptRef); funcWorkerScript.serverIp = workerScript.serverIp; funcWorkerScript.env = funcEnv; workerScript.fnWorker = funcWorkerScript; @@ -7961,7 +7969,7 @@ function evaluate(exp, workerScript) { workerScript.fnWorker = null; } else if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["isString"])(e)) { return Promise.reject(makeRuntimeRejectMsg(workerScript, e)); - } else if (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]) { + } else if (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]) { //Parse out the err message from the WorkerScript and re-reject var errorMsg = e.errorMessage; var errorTextArray = errorMsg.split("|"); @@ -8037,7 +8045,7 @@ function evaluate(exp, workerScript) { } return Promise.resolve(object[index]); }).catch(function(e) { - if (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] || isScriptErrorMessage(e)) { + if (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] || isScriptErrorMessage(e)) { return Promise.reject(e); } else { return Promise.reject(makeRuntimeRejectMsg(workerScript, "Invalid MemberExpression", exp)); @@ -8127,7 +8135,7 @@ function evaluate(exp, workerScript) { return Promise.resolve(res); }).catch(function(e) { if (e == "BREAKSTATEMENT" || - (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "BREAKSTATEMENT")) { + (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "BREAKSTATEMENT")) { return Promise.resolve("whileLoopBroken"); } else { return Promise.reject(e); @@ -8141,7 +8149,7 @@ function evaluate(exp, workerScript) { return Promise.resolve("forLoopDone"); }).catch(function(e) { if (e == "BREAKSTATEMENT" || - (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "BREAKSTATEMENT")) { + (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "BREAKSTATEMENT")) { return Promise.resolve("forLoopBroken"); } else { return Promise.reject(e); @@ -8427,7 +8435,7 @@ function evaluateFor(exp, workerScript) { return evaluate(exp.update, workerScript); }).catch(function(e) { if (e == "CONTINUESTATEMENT" || - (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "CONTINUESTATEMENT")) { + (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "CONTINUESTATEMENT")) { //Continue statement, recurse to next iteration return evaluate(exp.update, workerScript).then(function(resPostloop) { return evaluateFor(exp, workerScript); @@ -8473,7 +8481,7 @@ function evaluateForeach(arr, args, workerScript) { if (i >= arr.length) { resolve(); } else { - return Promise.delay(_Settings_js__WEBPACK_IMPORTED_MODULE_6__["Settings"].CodeInstructionRunTime).then(function() { + return Promise.delay(_Settings__WEBPACK_IMPORTED_MODULE_6__["Settings"].CodeInstructionRunTime).then(function() { console.log("About to apply function"); var res = func.apply(null, [arr[i]]); console.log("Applied function"); @@ -8500,7 +8508,7 @@ function evaluateWhile(exp, workerScript) { if (resCond) { return evaluate(exp.body, workerScript).catch(function(e) { if (e == "CONTINUESTATEMENT" || - (e instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "CONTINUESTATEMENT")) { + (e instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"] && e.errorMessage == "CONTINUESTATEMENT")) { //Continue statement, recurse return evaluateWhile(exp, workerScript).then(function(foo) { return Promise.resolve("endWhileLoop"); @@ -8565,7 +8573,7 @@ function evaluateImport(exp, workerScript, checkingRam=false) { } //Get the code - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_5__["getServer"])(workerScript.serverIp), code = ""; + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_5__["getServer"])(workerScript.serverIp), code = ""; if (server == null) { if (checkingRam) {return ramCheckRes;} return Promise.reject(makeRuntimeRejectMsg(workerScript, "Failed to identify server. This is a bug please report to dev", exp)); @@ -8583,7 +8591,7 @@ function evaluateImport(exp, workerScript, checkingRam=false) { //Create the AST try { - var ast = Object(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_8__["parse"])(code, {sourceType:"module"}); + var ast = Object(_utils_acorn__WEBPACK_IMPORTED_MODULE_8__["parse"])(code, {sourceType:"module"}); } catch(e) { console.log("Failed to parse import script"); if (checkingRam) {return ramCheckRes;} @@ -8605,7 +8613,7 @@ function evaluateImport(exp, workerScript, checkingRam=false) { case "BlockStatement": case "Program": for (var i = 0; i < node.body.length; ++i) { - if (node.body[i] instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_8__["Node"]) { + if (node.body[i] instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_8__["Node"]) { queue.push(node.body[i]); } } @@ -8641,7 +8649,7 @@ function evaluateImport(exp, workerScript, checkingRam=false) { for (var prop in node) { if (node.hasOwnProperty(prop)) { - if (node[prop] instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_8__["Node"]) { + if (node[prop] instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_8__["Node"]) { queue.push(node[prop]); } } @@ -8653,7 +8661,7 @@ function evaluateImport(exp, workerScript, checkingRam=false) { } function killNetscriptDelay(workerScript) { - if (workerScript instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]) { + if (workerScript instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]) { if (workerScript.delay) { clearTimeout(workerScript.delay); workerScript.delayResolve(); @@ -8683,7 +8691,7 @@ function makeRuntimeRejectMsg(workerScript, msg, exp=null) { //Run a script from inside a script using run() command function runScriptFromScript(server, scriptname, args, workerScript, threads=1) { //Check if the script is already running - var runningScriptObj = Object(_Script_js__WEBPACK_IMPORTED_MODULE_7__["findRunningScript"])(scriptname, args, server); + var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_7__["findRunningScript"])(scriptname, args, server); if (runningScriptObj != null) { workerScript.scriptRef.log(scriptname + " is already running on " + server.hostname); return Promise.resolve(false); @@ -8704,7 +8712,7 @@ function runScriptFromScript(server, scriptname, args, workerScript, threads=1) var script = server.scripts[i]; var ramUsage = script.ramUsage; threads = Math.round(Number(threads)); //Convert to number and round - ramUsage = ramUsage * threads * Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, threads-1); + ramUsage = ramUsage * threads * Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, threads-1); var ramAvailable = server.maxRam - server.ramUsed; if (server.hasAdminRights == false) { @@ -8716,12 +8724,12 @@ function runScriptFromScript(server, scriptname, args, workerScript, threads=1) } else { //Able to run script if(workerScript.disableLogs.ALL == null && workerScript.disableLogs.exec == null && workerScript.disableLogs.run == null && workerScript.disableLogs.spawn == null) { - workerScript.scriptRef.log("Running script: " + scriptname + " on " + server.hostname + " with " + threads + " threads and args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_9__["printArray"])(args) + ". May take a few seconds to start up..."); + workerScript.scriptRef.log("Running script: " + scriptname + " on " + server.hostname + " with " + threads + " threads and args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_9__["printArray"])(args) + ". May take a few seconds to start up..."); } - var runningScriptObj = new _Script_js__WEBPACK_IMPORTED_MODULE_7__["RunningScript"](script, args); + var runningScriptObj = new _Script__WEBPACK_IMPORTED_MODULE_7__["RunningScript"](script, args); runningScriptObj.threads = threads; server.runningScripts.push(runningScriptObj); //Push onto runningScripts - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["addWorkerScript"])(runningScriptObj, server); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["addWorkerScript"])(runningScriptObj, server); return Promise.resolve(true); } } @@ -8749,7 +8757,7 @@ function isScriptErrorMessage(msg) { return false; } var ip = splitMsg[1]; - if (!Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_10__["isValidIPAddress"])(ip)) { + if (!Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_10__["isValidIPAddress"])(ip)) { return false; } return true; @@ -8758,9 +8766,9 @@ function isScriptErrorMessage(msg) { //The same as Player's calculateHackingChance() function but takes in the server as an argument function scriptCalculateHackingChance(server) { var difficultyMult = (100 - server.hackDifficulty) / 100; - var skillMult = (1.75 * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill) + (0.2 * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence); + var skillMult = (1.75 * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill) + (0.2 * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence); var skillChance = (skillMult - server.requiredHackingSkill) / skillMult; - var chance = skillChance * difficultyMult * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_chance_mult; + var chance = skillChance * difficultyMult * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_chance_mult; if (chance > 1) {return 1;} if (chance < 0) {return 0;} else {return chance;} @@ -8769,8 +8777,8 @@ function scriptCalculateHackingChance(server) { //The same as Player's calculateHackingTime() function but takes in the server as an argument function scriptCalculateHackingTime(server) { var difficultyMult = server.requiredHackingSkill * server.hackDifficulty; - var skillFactor = (2.5 * difficultyMult + 500) / (_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill + 50 + (0.1 * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence)); - var hackingTime = 5 * skillFactor / _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_speed_mult; //This is in seconds + var skillFactor = (2.5 * difficultyMult + 500) / (_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill + 50 + (0.1 * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence)); + var hackingTime = 5 * skillFactor / _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_speed_mult; //This is in seconds return hackingTime; } @@ -8779,32 +8787,32 @@ function scriptCalculateExpGain(server) { if (server.baseDifficulty == null) { server.baseDifficulty = server.hackDifficulty; } - return (server.baseDifficulty * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_exp_mult * 0.3 + 3) * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].HackExpGain; + return (server.baseDifficulty * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_exp_mult * 0.3 + 3) * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].HackExpGain; } //The same as Player's calculatePercentMoneyHacked() function but takes in the server as an argument function scriptCalculatePercentMoneyHacked(server) { var difficultyMult = (100 - server.hackDifficulty) / 100; - var skillMult = (_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill - (server.requiredHackingSkill - 1)) / _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill; - var percentMoneyHacked = difficultyMult * skillMult * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_money_mult / 240; + var skillMult = (_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill - (server.requiredHackingSkill - 1)) / _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill; + var percentMoneyHacked = difficultyMult * skillMult * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_money_mult / 240; if (percentMoneyHacked < 0) {return 0;} if (percentMoneyHacked > 1) {return 1;} - return percentMoneyHacked * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ScriptHackMoney; + return percentMoneyHacked * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ScriptHackMoney; } //Amount of time to execute grow() in milliseconds function scriptCalculateGrowTime(server) { var difficultyMult = server.requiredHackingSkill * server.hackDifficulty; - var skillFactor = (2.5 * difficultyMult + 500) / (_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill + 50 + (0.1 * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence)); - var growTime = 16 * skillFactor / _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_speed_mult; //This is in seconds + var skillFactor = (2.5 * difficultyMult + 500) / (_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill + 50 + (0.1 * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence)); + var growTime = 16 * skillFactor / _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_speed_mult; //This is in seconds return growTime * 1000; } //Amount of time to execute weaken() in milliseconds function scriptCalculateWeakenTime(server) { var difficultyMult = server.requiredHackingSkill * server.hackDifficulty; - var skillFactor = (2.5 * difficultyMult + 500) / (_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill + 50 + (0.1 * _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence)); - var weakenTime = 20 * skillFactor / _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_speed_mult; //This is in seconds + var skillFactor = (2.5 * difficultyMult + 500) / (_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_skill + 50 + (0.1 * _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence)); + var weakenTime = 20 * skillFactor / _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].hacking_speed_mult; //This is in seconds return weakenTime * 1000; } @@ -8916,15 +8924,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initForeignServers", function() { return initForeignServers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prestigeAllServers", function() { return prestigeAllServers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prestigeHomeComputer", function() { return prestigeHomeComputer; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/IPAddress */ 15); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); @@ -8935,10 +8943,10 @@ __webpack_require__.r(__webpack_exports__); -function Server(params={ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:""}) { +function Server(params={ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:""}) { /* Properties */ //Connection information - this.ip = params.ip ? params.ip : Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(); + this.ip = params.ip ? params.ip : Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(); var hostname = params.hostname; var i = 0; @@ -8971,11 +8979,11 @@ function Server(params={ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7 /* Hacking information (only valid for "foreign" aka non-purchased servers) */ this.requiredHackingSkill = params.requiredHackingSkill != null ? params.requiredHackingSkill : 1; - this.moneyAvailable = params.moneyAvailable != null ? params.moneyAvailable * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerStartingMoney : 0; - this.moneyMax = 25 * this.moneyAvailable * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerMaxMoney; + this.moneyAvailable = params.moneyAvailable != null ? params.moneyAvailable * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerStartingMoney : 0; + this.moneyMax = 25 * this.moneyAvailable * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerMaxMoney; //Hack Difficulty is synonymous with server security. Base Difficulty = Starting difficulty - this.hackDifficulty = params.hackDifficulty != null ? params.hackDifficulty * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerStartingSecurity : 1; + this.hackDifficulty = params.hackDifficulty != null ? params.hackDifficulty * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerStartingSecurity : 1; this.baseDifficulty = this.hackDifficulty; this.minDifficulty = Math.max(1, Math.round(this.hackDifficulty / 3)); this.serverGrowth = params.serverGrowth != null ? params.serverGrowth : 1; //Integer from 0 to 100. Affects money increase from grow() @@ -9034,304 +9042,304 @@ Server.prototype.fortify = function(amt) { } Server.prototype.weaken = function(amt) { - this.hackDifficulty -= (amt * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerWeakenRate); + this.hackDifficulty -= (amt * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerWeakenRate); this.capDifficulty(); } //Functions for loading and saving a Server Server.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Server", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Server", this); } Server.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Server, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Server, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Server = Server; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Server = Server; function initForeignServers() { //MegaCorporations var ECorpServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"ecorp", organizationName:"ECorp", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1150, 1300), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(30e9, 70e9), + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"ecorp", organizationName:"ECorp", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1150, 1300), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(30e9, 70e9), hackDifficulty:99,serverGrowth:99, numOpenPortsRequired: 5, }); AddToAllServers(ECorpServer); var MegaCorpServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"megacorp", organizationName:"MegaCorp", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1150, 1300), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40e9, 60e9), + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"megacorp", organizationName:"MegaCorp", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1150, 1300), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40e9, 60e9), hackDifficulty:99, serverGrowth:99, numOpenPortsRequired:5 }); AddToAllServers(MegaCorpServer); var BachmanAndAssociatesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"b-and-a", organizationName:"Bachman & Associates", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1050), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(20e9, 25e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 75), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"b-and-a", organizationName:"Bachman & Associates", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1050), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(20e9, 25e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 75), numOpenPortsRequired:5 }); AddToAllServers(BachmanAndAssociatesServer); var BladeIndustriesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"blade", organizationName:"Blade Industries", maxRam:128, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1100), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(12e9, 20e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(90, 95), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 75), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"blade", organizationName:"Blade Industries", maxRam:128, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1100), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(12e9, 20e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(90, 95), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 75), numOpenPortsRequired:5 }); BladeIndustriesServer.messages.push("beyond-man.lit"); AddToAllServers(BladeIndustriesServer); var NWOServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"nwo", organizationName:"New World Order", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1200), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25e9, 35e9), - hackDifficulty:99, serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"nwo", organizationName:"New World Order", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1200), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25e9, 35e9), + hackDifficulty:99, serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), numOpenPortsRequired:5 }); NWOServer.messages.push("the-hidden-world.lit"); AddToAllServers(NWOServer); var ClarkeIncorporatedServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"clarkeinc", organizationName:"Clarke Incorporated", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1200), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(15e9, 25e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 60), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"clarkeinc", organizationName:"Clarke Incorporated", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1200), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(15e9, 25e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 60), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), numOpenPortsRequired:5 }); ClarkeIncorporatedServer.messages.push("beyond-man.lit"); ClarkeIncorporatedServer.messages.push("cost-of-immortality.lit"); AddToAllServers(ClarkeIncorporatedServer); var OmniTekIncorporatedServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"omnitek", organizationName:"OmniTek Incorporated", maxRam:256, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900, 1100), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(15e9, 20e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(90, 99), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(95, 99), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"omnitek", organizationName:"OmniTek Incorporated", maxRam:256, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900, 1100), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(15e9, 20e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(90, 99), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(95, 99), numOpenPortsRequired:5 }); OmniTekIncorporatedServer.messages.push("coded-intelligence.lit"); OmniTekIncorporatedServer.messages.push("history-of-synthoids.lit"); AddToAllServers(OmniTekIncorporatedServer); var FourSigmaServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"4sigma", organizationName:"FourSigma", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(950, 1200), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(15e9, 25e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 99), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"4sigma", organizationName:"FourSigma", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(950, 1200), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(15e9, 25e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 99), numOpenPortsRequired:5 }); AddToAllServers(FourSigmaServer); var KuaiGongInternationalServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"kuai-gong", organizationName:"KuaiGong International", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1250), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(20e9, 30e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(95, 99), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(90, 99), numOpenPortsRequired:5, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"kuai-gong", organizationName:"KuaiGong International", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1250), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(20e9, 30e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(95, 99), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(90, 99), numOpenPortsRequired:5, }); AddToAllServers(KuaiGongInternationalServer); //Technology and communications companies (large targets) var FulcrumTechnologiesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"fulcrumtech", organizationName:"Fulcrum Technologies", maxRam:512, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1200), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.4e9, 1.8e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 99), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"fulcrumtech", organizationName:"Fulcrum Technologies", maxRam:512, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1000, 1200), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.4e9, 1.8e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 99), numOpenPortsRequired:5 }); FulcrumTechnologiesServer.messages.push("simulated-reality.lit"); AddToAllServers(FulcrumTechnologiesServer); var FulcrumSecretTechnologiesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"fulcrumassets", organizationName:"Fulcrum Technologies Assets", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1200, 1500), moneyAvailable:1e6, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"fulcrumassets", organizationName:"Fulcrum Technologies Assets", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1200, 1500), moneyAvailable:1e6, hackDifficulty:99, serverGrowth:1, numOpenPortsRequired:5 }); AddToAllServers(FulcrumSecretTechnologiesServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].FulcrumSecretTechnologies, FulcrumSecretTechnologiesServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].FulcrumSecretTechnologies, FulcrumSecretTechnologiesServer.ip); var StormTechnologiesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"stormtech", organizationName:"Storm Technologies", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900, 1050), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1e9, 1.2e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"stormtech", organizationName:"Storm Technologies", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900, 1050), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1e9, 1.2e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), numOpenPortsRequired:5 }); AddToAllServers(StormTechnologiesServer); var DefCommServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"defcomm", organizationName:"DefComm", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900, 1000), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800e6, 950e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"defcomm", organizationName:"DefComm", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900, 1000), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800e6, 950e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), numOpenPortsRequired:5 }); AddToAllServers(DefCommServer); var InfoCommServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"infocomm", organizationName:"InfoComm", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(875, 950), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(600e6, 900e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 75), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"infocomm", organizationName:"InfoComm", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(875, 950), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(600e6, 900e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 75), numOpenPortsRequired:5 }); AddToAllServers(InfoCommServer); var HeliosLabsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"helios", organizationName:"Helios Labs", maxRam:128, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 900), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(550e6, 750e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"helios", organizationName:"Helios Labs", maxRam:128, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 900), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(550e6, 750e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 }); HeliosLabsServer.messages.push("beyond-man.lit"); AddToAllServers(HeliosLabsServer); var VitaLifeServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"vitalife", organizationName:"VitaLife", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 900), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 800e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"vitalife", organizationName:"VitaLife", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 900), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 800e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), numOpenPortsRequired:5 }); VitaLifeServer.messages.push("A-Green-Tomorrow.lit"); AddToAllServers(VitaLifeServer); var IcarusMicrosystemsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"icarus", organizationName:"Icarus Microsystems", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 925), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900e6, 1000e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"icarus", organizationName:"Icarus Microsystems", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 925), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900e6, 1000e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), numOpenPortsRequired:5 }); AddToAllServers(IcarusMicrosystemsServer); var UniversalEnergyServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"univ-energy", organizationName:"Universal Energy", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 900), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.1e9, 1.2e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"univ-energy", organizationName:"Universal Energy", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 900), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.1e9, 1.2e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), numOpenPortsRequired:4 }); AddToAllServers(UniversalEnergyServer); var TitanLabsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"titan-labs", organizationName:"Titan Laboratories", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 875), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750e6, 900e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"titan-labs", organizationName:"Titan Laboratories", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 875), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750e6, 900e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), numOpenPortsRequired:5 }); TitanLabsServer.messages.push("coded-intelligence.lit"); AddToAllServers(TitanLabsServer); var MicrodyneTechnologiesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"microdyne", organizationName:"Microdyne Technologies", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 875), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(500e6, 700e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 75), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"microdyne", organizationName:"Microdyne Technologies", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 875), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(500e6, 700e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 75), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), numOpenPortsRequired:5 }); MicrodyneTechnologiesServer.messages.push("synthetic-muscles.lit"); AddToAllServers(MicrodyneTechnologiesServer); var TaiYangDigitalServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"taiyang-digital", organizationName:"Taiyang Digital", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 950), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800e6, 900e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"taiyang-digital", organizationName:"Taiyang Digital", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 950), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800e6, 900e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 }); TaiYangDigitalServer.messages.push("A-Green-Tomorrow.lit"); TaiYangDigitalServer.messages.push("brighter-than-the-sun.lit"); AddToAllServers(TaiYangDigitalServer); var GalacticCyberSystemsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"galactic-cyber", organizationName:"Galactic Cybersystems", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(825, 875), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750e6, 850e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"galactic-cyber", organizationName:"Galactic Cybersystems", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(825, 875), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750e6, 850e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), numOpenPortsRequired:5 }); AddToAllServers(GalacticCyberSystemsServer); //Defense Companies ("Large" Companies) var AeroCorpServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"aerocorp", organizationName:"AeroCorp", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 925), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1e9, 1.2e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"aerocorp", organizationName:"AeroCorp", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 925), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1e9, 1.2e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), numOpenPortsRequired:5 }); AeroCorpServer.messages.push("man-and-machine.lit"); AddToAllServers(AeroCorpServer); var OmniaCybersystemsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"omnia", organizationName:"Omnia Cybersystems", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 950), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900e6, 1e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"omnia", organizationName:"Omnia Cybersystems", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(850, 950), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900e6, 1e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(85, 95), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), numOpenPortsRequired:5 }); OmniaCybersystemsServer.messages.push("history-of-synthoids.lit"); AddToAllServers(OmniaCybersystemsServer); var ZBDefenseServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zb-def", organizationName:"ZB Defense Industries", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 825), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900e6, 1.1e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 75), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zb-def", organizationName:"ZB Defense Industries", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 825), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(900e6, 1.1e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 75), numOpenPortsRequired:4 }); ZBDefenseServer.messages.push("synthetic-muscles.lit"); AddToAllServers(ZBDefenseServer); var AppliedEnergeticsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"applied-energetics", organizationName:"Applied Energetics", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 850), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 1e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 75), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"applied-energetics", organizationName:"Applied Energetics", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 850), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 1e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 75), numOpenPortsRequired:4 }); AddToAllServers(AppliedEnergeticsServer); var SolarisSpaceSystemsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"solaris", organizationName:"Solaris Space Systems", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750, 850), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 900e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"solaris", organizationName:"Solaris Space Systems", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750, 850), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 900e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 }); SolarisSpaceSystemsServer.messages.push("A-Green-Tomorrow.lit"); SolarisSpaceSystemsServer.messages.push("the-failed-frontier.lit"); AddToAllServers(SolarisSpaceSystemsServer); var DeltaOneServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"deltaone", organizationName:"Delta One", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 900), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.3e9, 1.7e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"deltaone", organizationName:"Delta One", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 900), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.3e9, 1.7e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), numOpenPortsRequired:5 }); AddToAllServers(DeltaOneServer); //Health, medicine, pharmaceutical companies ("Large" targets) var GlobalPharmaceuticalsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"global-pharm", organizationName:"Global Pharmaceuticals", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750, 850), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.5e9, 1.75e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"global-pharm", organizationName:"Global Pharmaceuticals", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(750, 850), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.5e9, 1.75e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(80, 90), numOpenPortsRequired:4 }); GlobalPharmaceuticalsServer.messages.push("A-Green-Tomorrow.lit"); AddToAllServers(GlobalPharmaceuticalsServer); var NovaMedicalServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"nova-med", organizationName:"Nova Medical", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 850), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.1e9, 1.25e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 85), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"nova-med", organizationName:"Nova Medical", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 850), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.1e9, 1.25e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 85), numOpenPortsRequired:4 }); AddToAllServers(NovaMedicalServer); var ZeusMedicalServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zeus-med", organizationName:"Zeus Medical", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 850), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.3e9, 1.5e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zeus-med", organizationName:"Zeus Medical", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800, 850), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1.3e9, 1.5e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 90), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:5 }); AddToAllServers(ZeusMedicalServer); var UnitaLifeGroupServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"unitalife", organizationName:"UnitaLife Group", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 825), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1e9, 1.1e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"unitalife", organizationName:"UnitaLife Group", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(775, 825), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(1e9, 1.1e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), numOpenPortsRequired:4 }); AddToAllServers(UnitaLifeGroupServer); //"Medium level" targets var LexoCorpServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"lexo-corp", organizationName:"Lexo Corporation", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(650, 750), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 800e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"lexo-corp", organizationName:"Lexo Corporation", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(650, 750), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(700e6, 800e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), numOpenPortsRequired:4 }); AddToAllServers(LexoCorpServer); var RhoConstructionServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"rho-construction", organizationName:"Rho Construction", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(475, 525), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(500e6, 700e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), numOpenPortsRequired:3 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"rho-construction", organizationName:"Rho Construction", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(475, 525), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(500e6, 700e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), numOpenPortsRequired:3 }); AddToAllServers(RhoConstructionServer); var AlphaEnterprisesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"alpha-ent", organizationName:"Alpha Enterprises", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(500, 600), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(600e6, 750e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 60),numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"alpha-ent", organizationName:"Alpha Enterprises", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(500, 600), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(600e6, 750e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 70), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 60),numOpenPortsRequired:4 }); AlphaEnterprisesServer.messages.push("sector-12-crime.lit"); AddToAllServers(AlphaEnterprisesServer); var AevumPoliceServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"aevum-police", organizationName:"Aevum Police Network", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(400, 450), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(200e6, 400e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(30, 50), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"aevum-police", organizationName:"Aevum Police Network", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(400, 450), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(200e6, 400e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(30, 50), numOpenPortsRequired:4 }); AddToAllServers(AevumPoliceServer); var RothmanUniversityServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"rothman-uni", organizationName:"Rothman University Network", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(370, 430), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(175e6, 250e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 55), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 45), numOpenPortsRequired:3 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"rothman-uni", organizationName:"Rothman University Network", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(370, 430), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(175e6, 250e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 55), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 45), numOpenPortsRequired:3 }); RothmanUniversityServer.messages.push("secret-societies.lit"); RothmanUniversityServer.messages.push("the-failed-frontier.lit"); @@ -9339,16 +9347,16 @@ function initForeignServers() { AddToAllServers(RothmanUniversityServer); var ZBInstituteOfTechnologyServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zb-institute", organizationName:"ZB Institute of Technology Network", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(725, 775), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800e6, 1.1e9), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 85), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), numOpenPortsRequired:5 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zb-institute", organizationName:"ZB Institute of Technology Network", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(725, 775), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(800e6, 1.1e9), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(65, 85), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(75, 85), numOpenPortsRequired:5 }); AddToAllServers(ZBInstituteOfTechnologyServer); var SummitUniversityServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"summit-uni", organizationName:"Summit University Network", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(425, 475), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(200e6, 350e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 65), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), numOpenPortsRequired:3 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"summit-uni", organizationName:"Summit University Network", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(425, 475), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(200e6, 350e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 65), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), numOpenPortsRequired:3 }); SummitUniversityServer.messages.push("secret-societies.lit"); SummitUniversityServer.messages.push("the-failed-frontier.lit"); @@ -9356,53 +9364,53 @@ function initForeignServers() { AddToAllServers(SummitUniversityServer); var SysCoreSecuritiesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"syscore", organizationName:"SysCore Securities", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(550, 650), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(400e6, 600e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"syscore", organizationName:"SysCore Securities", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(550, 650), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(400e6, 600e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), numOpenPortsRequired:4 }); AddToAllServers(SysCoreSecuritiesServer); var CatalystVenturesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"catalyst", organizationName:"Catalyst Ventures", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(400, 450), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(300e6, 550e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25, 55), numOpenPortsRequired:3, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"catalyst", organizationName:"Catalyst Ventures", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(400, 450), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(300e6, 550e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 70), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25, 55), numOpenPortsRequired:3, }); CatalystVenturesServer.messages.push("tensions-in-tech-race.lit"); AddToAllServers(CatalystVenturesServer); var TheHubServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"the-hub", organizationName:"The Hub", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(275, 325), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(150e6, 200e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 45), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 55), numOpenPortsRequired:2 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"the-hub", organizationName:"The Hub", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(275, 325), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(150e6, 200e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 45), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 55), numOpenPortsRequired:2 }); AddToAllServers(TheHubServer); var CompuTekServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"comptek", organizationName:"CompuTek", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(300, 400), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(220e6, 250e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 65), numOpenPortsRequired:3 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"comptek", organizationName:"CompuTek", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(300, 400), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(220e6, 250e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 65), numOpenPortsRequired:3 }); CompuTekServer.messages.push("man-and-machine.lit"); AddToAllServers(CompuTekServer); var NetLinkTechnologiesServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"netlink", organizationName:"NetLink Technologies", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(375, 425), moneyAvailable:275e6, - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 75), numOpenPortsRequired:3 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"netlink", organizationName:"NetLink Technologies", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(375, 425), moneyAvailable:275e6, + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60, 80), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 75), numOpenPortsRequired:3 }); NetLinkTechnologiesServer.messages.push("simulated-reality.lit"); AddToAllServers(NetLinkTechnologiesServer); var JohnsonOrthopedicsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"johnson-ortho", organizationName:"Johnson Orthopedics", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(250, 300), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70e6, 85e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 65), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 65), numOpenPortsRequired:2 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"johnson-ortho", organizationName:"Johnson Orthopedics", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(250, 300), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(70e6, 85e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 65), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 65), numOpenPortsRequired:2 }); AddToAllServers(JohnsonOrthopedicsServer); //"Low level" targets var FoodNStuffServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"foodnstuff", organizationName:"Food N Stuff Supermarket", maxRam:16, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"foodnstuff", organizationName:"Food N Stuff Supermarket", maxRam:16, requiredHackingSkill:1, moneyAvailable:2e6, hackDifficulty:10, serverGrowth:5, numOpenPortsRequired:0 }); @@ -9410,35 +9418,35 @@ function initForeignServers() { AddToAllServers(FoodNStuffServer); var SigmaCosmeticsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"sigma-cosmetics", organizationName:"Sigma Cosmetics", maxRam:16, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"sigma-cosmetics", organizationName:"Sigma Cosmetics", maxRam:16, requiredHackingSkill:5, moneyAvailable:2.3e6, hackDifficulty:10, serverGrowth:10, numOpenPortsRequired:0 }); AddToAllServers(SigmaCosmeticsServer); var JoesGunsServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"joesguns", organizationName:"Joe's Guns", maxRam:16, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"joesguns", organizationName:"Joe's Guns", maxRam:16, requiredHackingSkill:10, moneyAvailable:2.5e6, hackDifficulty:15, serverGrowth:20, numOpenPortsRequired:0 }); AddToAllServers(JoesGunsServer); var Zer0NightclubServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zer0", organizationName:"ZER0 Nightclub", maxRam:32, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"zer0", organizationName:"ZER0 Nightclub", maxRam:32, requiredHackingSkill:75, moneyAvailable:7.5e6, hackDifficulty:25, serverGrowth:40, numOpenPortsRequired:1 }); AddToAllServers(Zer0NightclubServer); var NectarNightclubServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"nectar-net", organizationName:"Nectar Nightclub Network", maxRam:16, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"nectar-net", organizationName:"Nectar Nightclub Network", maxRam:16, requiredHackingSkill:20, moneyAvailable:2.75e6, hackDifficulty:20, serverGrowth:25, numOpenPortsRequired:0 }); AddToAllServers(NectarNightclubServer); var NeoNightclubServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"neo-net", organizationName:"Neo Nightclub Network", maxRam:32, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"neo-net", organizationName:"Neo Nightclub Network", maxRam:32, requiredHackingSkill:50, moneyAvailable:5e6, hackDifficulty:25, serverGrowth:25, numOpenPortsRequired:1 }); @@ -9446,7 +9454,7 @@ function initForeignServers() { AddToAllServers(NeoNightclubServer); var SilverHelixServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"silver-helix", organizationName:"Silver Helix", maxRam:64, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"silver-helix", organizationName:"Silver Helix", maxRam:64, requiredHackingSkill:150, moneyAvailable:45e6, hackDifficulty:30, serverGrowth:30, numOpenPortsRequired:2 }); @@ -9454,7 +9462,7 @@ function initForeignServers() { AddToAllServers(SilverHelixServer); var HongFangTeaHouseServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"hong-fang-tea", organizationName:"HongFang Teahouse", maxRam:16, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"hong-fang-tea", organizationName:"HongFang Teahouse", maxRam:16, requiredHackingSkill:30, moneyAvailable:3e6, hackDifficulty:15, serverGrowth:20, numOpenPortsRequired:0 }); @@ -9462,133 +9470,133 @@ function initForeignServers() { AddToAllServers(HongFangTeaHouseServer); var HaraKiriSushiBarServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"harakiri-sushi", organizationName:"HaraKiri Sushi Bar Network",maxRam:16, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"harakiri-sushi", organizationName:"HaraKiri Sushi Bar Network",maxRam:16, requiredHackingSkill:40, moneyAvailable:4e6, hackDifficulty:15, serverGrowth:40, numOpenPortsRequired:0 }); AddToAllServers(HaraKiriSushiBarServer); var PhantasyServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"phantasy", organizationName:"Phantasy Club", maxRam:32, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"phantasy", organizationName:"Phantasy Club", maxRam:32, requiredHackingSkill:100, moneyAvailable:24e6, hackDifficulty:20, serverGrowth:35, numOpenPortsRequired:2 }); AddToAllServers(PhantasyServer); var MaxHardwareServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"max-hardware", organizationName:"Max Hardware Store", maxRam:32, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"max-hardware", organizationName:"Max Hardware Store", maxRam:32, requiredHackingSkill:80, moneyAvailable:10e6, hackDifficulty:15, serverGrowth:30, numOpenPortsRequired:1, }); AddToAllServers(MaxHardwareServer); var OmegaSoftwareServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"omega-net", organizationName:"Omega Software", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(180, 220), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60e6, 70e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25, 35), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(30, 40), numOpenPortsRequired:2 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"omega-net", organizationName:"Omega Software", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(180, 220), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(60e6, 70e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25, 35), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(30, 40), numOpenPortsRequired:2 }); OmegaSoftwareServer.messages.push("the-new-god.lit"); AddToAllServers(OmegaSoftwareServer); //Gyms var CrushFitnessGymServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"crush-fitness", organizationName:"Crush Fitness", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(225, 275), moneyAvailable:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40e6, 60e6), - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 45), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(27, 33), numOpenPortsRequired:2 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"crush-fitness", organizationName:"Crush Fitness", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(225, 275), moneyAvailable:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40e6, 60e6), + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(35, 45), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(27, 33), numOpenPortsRequired:2 }); AddToAllServers(CrushFitnessGymServer); var IronGymServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"iron-gym", organizationName:"Iron Gym Network", maxRam:32, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"iron-gym", organizationName:"Iron Gym Network", maxRam:32, requiredHackingSkill:100, moneyAvailable:20e6, hackDifficulty:30, serverGrowth:20, numOpenPortsRequired:1 }); AddToAllServers(IronGymServer); var MilleniumFitnessGymServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"millenium-fitness", organizationName:"Millenium Fitness Network", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(475, 525), moneyAvailable:250e6, - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 55), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25, 45), numOpenPortsRequired:3, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"millenium-fitness", organizationName:"Millenium Fitness Network", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(475, 525), moneyAvailable:250e6, + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(45, 55), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(25, 45), numOpenPortsRequired:3, }); AddToAllServers(MilleniumFitnessGymServer); var PowerhouseGymServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"powerhouse-fitness", organizationName:"Powerhouse Fitness", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(950, 1100), moneyAvailable:900e6, - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 60), numOpenPortsRequired:5, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"powerhouse-fitness", organizationName:"Powerhouse Fitness", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(950, 1100), moneyAvailable:900e6, + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(55, 65), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(50, 60), numOpenPortsRequired:5, }); AddToAllServers(PowerhouseGymServer); var SnapFitnessGymServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"snap-fitness", organizationName:"Snap Fitness", - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(675, 800), moneyAvailable:450e6, - hackDifficulty:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), serverGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), numOpenPortsRequired:4 + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"snap-fitness", organizationName:"Snap Fitness", + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(675, 800), moneyAvailable:450e6, + hackDifficulty:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), serverGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(40, 60), numOpenPortsRequired:4 }); AddToAllServers(SnapFitnessGymServer); //Faction servers, cannot hack money from these var BitRunnersServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"run4theh111z", organizationName:"The Runners", maxRam:128, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(505, 550), moneyAvailable:0, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"run4theh111z", organizationName:"The Runners", maxRam:128, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(505, 550), moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:4 }); BitRunnersServer.messages.push("simulated-reality.lit"); BitRunnersServer.messages.push("the-new-god.lit"); AddToAllServers(BitRunnersServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].BitRunnersServer, BitRunnersServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].BitRunnersServer, BitRunnersServer.ip); var TheBlackHandServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"I.I.I.I", organizationName:"I.I.I.I", maxRam:64, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(340, 365), moneyAvailable:0, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"I.I.I.I", organizationName:"I.I.I.I", maxRam:64, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(340, 365), moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:3, }); TheBlackHandServer.messages.push("democracy-is-dead.lit"); AddToAllServers(TheBlackHandServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].TheBlackHandServer, TheBlackHandServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].TheBlackHandServer, TheBlackHandServer.ip); var NiteSecServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"avmnite-02h", organizationName:"NiteSec", maxRam:32, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(202, 220), moneyAvailable:0, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"avmnite-02h", organizationName:"NiteSec", maxRam:32, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(202, 220), moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:2 }); NiteSecServer.messages.push("democracy-is-dead.lit"); AddToAllServers(NiteSecServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].NiteSecServer, NiteSecServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].NiteSecServer, NiteSecServer.ip); var DarkArmyServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:".", organizationName:".", maxRam:16, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(505, 550), moneyAvailable:0, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:".", organizationName:".", maxRam:16, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(505, 550), moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:4 }); AddToAllServers(DarkArmyServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].TheDarkArmyServer, DarkArmyServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].TheDarkArmyServer, DarkArmyServer.ip); var CyberSecServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"CSEC", organizationName:"CyberSec", maxRam:8, - requiredHackingSkill:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(51, 60), moneyAvailable:0, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"CSEC", organizationName:"CyberSec", maxRam:8, + requiredHackingSkill:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(51, 60), moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:1 }); CyberSecServer.messages.push("democracy-is-dead.lit"); AddToAllServers(CyberSecServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].CyberSecServer, CyberSecServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].CyberSecServer, CyberSecServer.ip); var DaedalusServer = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"The-Cave", organizationName:"Helios", + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:"The-Cave", organizationName:"Helios", requiredHackingSkill:925, moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:5 }); DaedalusServer.messages.push("alpha-omega.lit"); AddToAllServers(DaedalusServer); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].DaedalusServer, DaedalusServer.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].DaedalusServer, DaedalusServer.ip); //Super special Servers var WorldDaemon = new Server({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].WorldDaemon, organizationName:_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].WorldDaemon, + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["createRandomIp"])(), hostname:_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].WorldDaemon, organizationName:_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].WorldDaemon, requiredHackingSkill:3000, moneyAvailable:0, hackDifficulty:0, serverGrowth:0, numOpenPortsRequired:5 }); AddToAllServers(WorldDaemon); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].WorldDaemon, WorldDaemon.ip); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerIps"].addIp(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_5__["SpecialServerNames"].WorldDaemon, WorldDaemon.ip); /* Create a randomized network for all the foreign servers */ //Groupings for creating a randomized network @@ -9694,20 +9702,20 @@ function initForeignServers() { //Connect the first tier of servers to the player's home computer for (var i = 0; i < NetworkGroup1.length; i++) { - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].getHomeComputer().serversOnNetwork.push(NetworkGroup1[i].ip); - NetworkGroup1[i].serversOnNetwork.push(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].homeComputer); + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].getHomeComputer().serversOnNetwork.push(NetworkGroup1[i].ip); + NetworkGroup1[i].serversOnNetwork.push(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].homeComputer); } } function numCycleForGrowth(server, growth) { - let ajdGrowthRate = 1 + (_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerBaseGrowthRate - 1) / server.hackDifficulty; - if(ajdGrowthRate > _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate) { - ajdGrowthRate = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate; + let ajdGrowthRate = 1 + (_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerBaseGrowthRate - 1) / server.hackDifficulty; + if(ajdGrowthRate > _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate) { + ajdGrowthRate = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate; } const serverGrowthPercentage = server.serverGrowth / 100; - const cycles = Math.log(growth)/(Math.log(ajdGrowthRate)*_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_grow_mult*serverGrowthPercentage); + const cycles = Math.log(growth)/(Math.log(ajdGrowthRate)*_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_grow_mult*serverGrowthPercentage); return cycles; } @@ -9717,16 +9725,16 @@ function processSingleServerGrowth(server, numCycles) { const numServerGrowthCycles = Math.max(Math.floor(numCycles / 450), 0); //Get adjusted growth rate, which accounts for server security - const growthRate = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerBaseGrowthRate; + const growthRate = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerBaseGrowthRate; var adjGrowthRate = 1 + (growthRate - 1) / server.hackDifficulty; - if (adjGrowthRate > _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate) {adjGrowthRate = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate;} + if (adjGrowthRate > _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate) {adjGrowthRate = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerMaxGrowthRate;} //Calculate adjusted server growth rate based on parameters const serverGrowthPercentage = server.serverGrowth / 100; - const numServerGrowthCyclesAdjusted = numServerGrowthCycles * serverGrowthPercentage * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerGrowthRate; + const numServerGrowthCyclesAdjusted = numServerGrowthCycles * serverGrowthPercentage * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].ServerGrowthRate; //Apply serverGrowth for the calculated number of growth cycles - var serverGrowth = Math.pow(adjGrowthRate, numServerGrowthCyclesAdjusted * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_grow_mult); + var serverGrowth = Math.pow(adjGrowthRate, numServerGrowthCyclesAdjusted * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_grow_mult); if (serverGrowth < 1) { console.log("WARN: serverGrowth calculated to be less than 1"); serverGrowth = 1; @@ -9750,7 +9758,7 @@ function processSingleServerGrowth(server, numCycles) { //Growing increases server security twice as much as hacking let usedCycles = numCycleForGrowth(server, server.moneyAvailable / oldMoneyAvailable); usedCycles = Math.max(0, usedCycles); - server.fortify(2 * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerFortifyAmount * Math.ceil(usedCycles)); + server.fortify(2 * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerFortifyAmount * Math.ceil(usedCycles)); } return server.moneyAvailable / oldMoneyAvailable; } @@ -9761,7 +9769,7 @@ function prestigeHomeComputer(homeComp) { homeComp.serversOnNetwork = []; homeComp.isConnectedTo = true; homeComp.ramUsed = 0; - homeComp.programs.push(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].NukeProgram.name); + homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].NukeProgram.name); //Update RAM usage on all scripts homeComp.scripts.forEach(function(script) { @@ -9783,7 +9791,7 @@ function prestigeAllServers() { } function loadAllServers(saveString) { - AllServers = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"]); + AllServers = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"]); } function SizeOfAllServers() { @@ -9797,7 +9805,7 @@ function SizeOfAllServers() { //Add a server onto the map of all servers in the game function AddToAllServers(server) { var serverIp = server.ip; - if (Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["ipExists"])(serverIp)) { + if (Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["ipExists"])(serverIp)) { console.log("IP of server that's being added: " + serverIp); console.log("Hostname of the server thats being added: " + server.hostname); console.log("The server that already has this IP is: " + AllServers[serverIp].hostname); @@ -9822,7 +9830,7 @@ function GetServerByHostname(hostname) { //Get server by IP or hostname. Returns null if invalid function getServer(s) { - if (!Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_7__["isValidIPAddress"])(s)) { + if (!Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_7__["isValidIPAddress"])(s)) { return GetServerByHostname(s); } if(AllServers[s] !== undefined) { @@ -9974,10 +9982,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Company", function() { return Company; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompanyPosition", function() { return CompanyPosition; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "companyExists", function() { return companyExists; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); @@ -10047,8 +10055,8 @@ Company.prototype.getFavorGain = function() { if (this.favor == null || this.favor == undefined) {this.favor = 0;} if (this.rolloverRep == null || this.rolloverRep == undefined) {this.rolloverRep = 0;} var favorGain = 0, rep = this.playerReputation + this.rolloverRep; - var reqdRep = _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CompanyReputationToFavorBase * - Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CompanyReputationToFavorMult, this.favor); + var reqdRep = _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CompanyReputationToFavorBase * + Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CompanyReputationToFavorMult, this.favor); while(rep > 0) { if (rep >= reqdRep) { ++favorGain; @@ -10056,20 +10064,20 @@ Company.prototype.getFavorGain = function() { } else { break; } - reqdRep *= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].FactionReputationToFavorMult; + reqdRep *= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].FactionReputationToFavorMult; } return [favorGain, rep]; } Company.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Generic_toJSON"])("Company", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Generic_toJSON"])("Company", this); } Company.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Generic_fromJSON"])(Company, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Generic_fromJSON"])(Company, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Reviver"].constructors.Company = Company; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Reviver"].constructors.Company = Company; //Object that defines a position within a Company and its requirements function CompanyPosition(name, reqHack, reqStr, reqDef, reqDex, reqAgi, reqCha, reqRep, salary) { @@ -10122,12 +10130,12 @@ CompanyPosition.prototype.setExperienceGains = function(hack, str, def, dex, agi //Calculate a player's effectiveness at a certain job. Returns the amount of job reputation //that should be gained every game loop (200 ms) CompanyPosition.prototype.calculateJobPerformance = function(hacking, str, def, dex, agi, cha) { - var hackRatio = this.hackingEffectiveness * hacking / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; - var strRatio = this.strengthEffectiveness * str / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; - var defRatio = this.defenseEffectiveness * def / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; - var dexRatio = this.dexterityEffectiveness * dex / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; - var agiRatio = this.agilityEffectiveness * agi / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; - var chaRatio = this.charismaEffectiveness * cha / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var hackRatio = this.hackingEffectiveness * hacking / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var strRatio = this.strengthEffectiveness * str / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var defRatio = this.defenseEffectiveness * def / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var dexRatio = this.dexterityEffectiveness * dex / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var agiRatio = this.agilityEffectiveness * agi / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var chaRatio = this.charismaEffectiveness * cha / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; var reputationGain = this.positionMultiplier * (hackRatio + strRatio + defRatio + dexRatio + agiRatio + chaRatio) / 100; if (isNaN(reputationGain)) { @@ -10228,14 +10236,14 @@ CompanyPosition.prototype.isPartTimeJob = function() { } CompanyPosition.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Generic_toJSON"])("CompanyPosition", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Generic_toJSON"])("CompanyPosition", this); } CompanyPosition.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Generic_fromJSON"])(CompanyPosition, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Generic_fromJSON"])(CompanyPosition, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Reviver"].constructors.CompanyPosition = CompanyPosition; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Reviver"].constructors.CompanyPosition = CompanyPosition; let CompanyPositions = { //Constructor: CompanyPosition(name, reqHack, reqStr, reqDef, reqDex, reqAgi, reqCha, reqRep, salary) @@ -10500,7 +10508,7 @@ function getNextCompanyPosition(currPos) { function initCompanies() { /* Companies that also have servers */ //Megacorporations - var ECorp = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp, 3.0, 3.0, 249); + var ECorp = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp, 3.0, 3.0, 249); ECorp.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10511,13 +10519,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp)) { - ECorp.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp)) { + ECorp.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumECorp]; } AddToCompanies(ECorp); - var MegaCorp = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp, 3.0, 3.0, 249); + var MegaCorp = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp, 3.0, 3.0, 249); MegaCorp.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10528,13 +10536,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp)) { - MegaCorp.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp)) { + MegaCorp.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12MegaCorp]; } AddToCompanies(MegaCorp); - var BachmanAndAssociates = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates, 2.6, 2.6, 224); + var BachmanAndAssociates = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates, 2.6, 2.6, 224); BachmanAndAssociates.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10545,13 +10553,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates)) { - BachmanAndAssociates.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates)) { + BachmanAndAssociates.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumBachmanAndAssociates]; } AddToCompanies(BachmanAndAssociates); - var BladeIndustries = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries, 2.75, 2.75, 224); + var BladeIndustries = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries, 2.75, 2.75, 224); BladeIndustries.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10562,13 +10570,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries)) { - BladeIndustries.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries)) { + BladeIndustries.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12BladeIndustries]; } AddToCompanies(BladeIndustries); - var NWO = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO, 2.75, 2.75, 249); + var NWO = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO, 2.75, 2.75, 249); NWO.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10579,13 +10587,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO)) { - NWO.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO)) { + NWO.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenNWO]; } AddToCompanies(NWO); - var ClarkeIncorporated = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated, 2.25, 2.25, 224); + var ClarkeIncorporated = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated, 2.25, 2.25, 224); ClarkeIncorporated.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10596,13 +10604,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated)) { - ClarkeIncorporated.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated)) { + ClarkeIncorporated.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumClarkeIncorporated]; } AddToCompanies(ClarkeIncorporated); - var OmniTekIncorporated = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated, 2.25, 2.25, 224); + var OmniTekIncorporated = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated, 2.25, 2.25, 224); OmniTekIncorporated.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10613,13 +10621,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated)) { - OmniTekIncorporated.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated)) { + OmniTekIncorporated.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniTekIncorporated]; } AddToCompanies(OmniTekIncorporated); - var FourSigma = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma, 2.5, 2.5, 224); + var FourSigma = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma, 2.5, 2.5, 224); FourSigma.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10630,13 +10638,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma)) { - FourSigma.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma)) { + FourSigma.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FourSigma]; } AddToCompanies(FourSigma); - var KuaiGongInternational = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational, 2.2, 2.2, 224); + var KuaiGongInternational = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational, 2.2, 2.2, 224); KuaiGongInternational.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10647,14 +10655,14 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational)) { - KuaiGongInternational.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational)) { + KuaiGongInternational.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingKuaiGongInternational]; } AddToCompanies(KuaiGongInternational); //Technology and communication companies ("Large" servers) - var FulcrumTechnologies = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies, 2.0, 2.0, 224); + var FulcrumTechnologies = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies, 2.0, 2.0, 224); FulcrumTechnologies.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10664,13 +10672,13 @@ function initCompanies() { CompanyPositions.VicePresident, CompanyPositions.CTO, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies)) { - FulcrumTechnologies.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies)) { + FulcrumTechnologies.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumFulcrumTechnologies]; } AddToCompanies(FulcrumTechnologies); - var StormTechnologies = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies, 1.8, 1.8, 199); + var StormTechnologies = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies, 1.8, 1.8, 199); StormTechnologies.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10682,13 +10690,13 @@ function initCompanies() { CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies)) { - StormTechnologies.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies)) { + StormTechnologies.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaStormTechnologies]; } AddToCompanies(StormTechnologies); - var DefComm = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm, 1.75, 1.75, 199); + var DefComm = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm, 1.75, 1.75, 199); DefComm.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10696,13 +10704,13 @@ function initCompanies() { CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm)) { - DefComm.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm)) { + DefComm.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoDefComm]; } AddToCompanies(DefComm); - var HeliosLabs = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs, 1.8, 1.8, 199); + var HeliosLabs = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs, 1.8, 1.8, 199); HeliosLabs.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10710,13 +10718,13 @@ function initCompanies() { CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware, CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs)) { - HeliosLabs.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs)) { + HeliosLabs.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenHeliosLabs]; } AddToCompanies(HeliosLabs); - var VitaLife = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife, 1.8, 1.8, 199); + var VitaLife = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife, 1.8, 1.8, 199); VitaLife.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10726,13 +10734,13 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife)) { - VitaLife.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife)) { + VitaLife.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoVitaLife]; } AddToCompanies(VitaLife); - var IcarusMicrosystems = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems, 1.9, 1.9, 199); + var IcarusMicrosystems = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems, 1.9, 1.9, 199); IcarusMicrosystems.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10742,13 +10750,13 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems)) { - IcarusMicrosystems.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems)) { + IcarusMicrosystems.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12IcarusMicrosystems]; } AddToCompanies(IcarusMicrosystems); - var UniversalEnergy = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy, 2.0, 2.0, 199); + var UniversalEnergy = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy, 2.0, 2.0, 199); UniversalEnergy.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10758,13 +10766,13 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy)) { - UniversalEnergy.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy)) { + UniversalEnergy.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12UniversalEnergy]; } AddToCompanies(UniversalEnergy); - var GalacticCybersystems = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems, 1.9, 1.9, 199); + var GalacticCybersystems = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems, 1.9, 1.9, 199); GalacticCybersystems.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10774,14 +10782,14 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.CTO, CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems)) { - GalacticCybersystems.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems)) { + GalacticCybersystems.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumGalacticCybersystems]; } AddToCompanies(GalacticCybersystems); //Defense Companies ("Large" Companies) - var AeroCorp = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp, 1.7, 1.7, 199); + var AeroCorp = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp, 1.7, 1.7, 199); AeroCorp.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, @@ -10791,13 +10799,13 @@ function initCompanies() { CompanyPositions.OperationsManager, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp)) { - AeroCorp.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp)) { + AeroCorp.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumAeroCorp]; } AddToCompanies(AeroCorp); - var OmniaCybersystems = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems, 1.7, 1.7, 199); + var OmniaCybersystems = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems, 1.7, 1.7, 199); OmniaCybersystems.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, @@ -10807,13 +10815,13 @@ function initCompanies() { CompanyPositions.OperationsManager, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems)) { - OmniaCybersystems.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems)) { + OmniaCybersystems.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenOmniaCybersystems]; } AddToCompanies(OmniaCybersystems); - var SolarisSpaceSystems = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems, 1.7, 1.7, 199); + var SolarisSpaceSystems = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems, 1.7, 1.7, 199); SolarisSpaceSystems.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, @@ -10823,13 +10831,13 @@ function initCompanies() { CompanyPositions.OperationsManager, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems)) { - SolarisSpaceSystems.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems)) { + SolarisSpaceSystems.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].ChongqingSolarisSpaceSystems]; } AddToCompanies(SolarisSpaceSystems); - var DeltaOne = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne, 1.6, 1.6, 199); + var DeltaOne = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne, 1.6, 1.6, 199); DeltaOne.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, @@ -10839,14 +10847,14 @@ function initCompanies() { CompanyPositions.OperationsManager, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne)) { - DeltaOne.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne)) { + DeltaOne.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12DeltaOne]; } AddToCompanies(DeltaOne); //Health, medicine, pharmaceutical companies ("Large" servers) - var GlobalPharmaceuticals = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals, 1.8, 1.8, 224); + var GlobalPharmaceuticals = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals, 1.8, 1.8, 224); GlobalPharmaceuticals.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10857,13 +10865,13 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals)) { - GlobalPharmaceuticals.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals)) { + GlobalPharmaceuticals.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoGlobalPharmaceuticals]; } AddToCompanies(GlobalPharmaceuticals); - var NovaMedical = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical, 1.75, 1.75, 199); + var NovaMedical = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical, 1.75, 1.75, 199); NovaMedical.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.ITIntern, CompanyPositions.BusinessIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, @@ -10874,14 +10882,14 @@ function initCompanies() { CompanyPositions.BusinessManager, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical)) { - NovaMedical.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical)) { + NovaMedical.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaNovaMedical]; } AddToCompanies(NovaMedical); //Other large companies - var CIA = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA, 2.0, 2.0, 149); + var CIA = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA, 2.0, 2.0, 149); CIA.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, @@ -10890,13 +10898,13 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity, CompanyPositions.FieldAgent, CompanyPositions.SecretAgent, CompanyPositions.SpecialOperative]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA)) { - CIA.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA)) { + CIA.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CIA]; } AddToCompanies(CIA); - var NSA = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA, 2.0, 2.0, 149); + var NSA = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA, 2.0, 2.0, 149); NSA.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, @@ -10905,13 +10913,13 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity, CompanyPositions.FieldAgent, CompanyPositions.SecretAgent, CompanyPositions.SpecialOperative]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA)) { - NSA.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA)) { + NSA.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12NSA]; } AddToCompanies(NSA); - var WatchdogSecurity = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity, 1.5, 1.5, 124); + var WatchdogSecurity = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity, 1.5, 1.5, 124); WatchdogSecurity.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10921,14 +10929,14 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity, CompanyPositions.FieldAgent, CompanyPositions.SecretAgent, CompanyPositions.SpecialOperative]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity)) { - WatchdogSecurity.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity)) { + WatchdogSecurity.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumWatchdogSecurity]; } AddToCompanies(WatchdogSecurity); //"Medium level" companies - var LexoCorp = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp, 1.4, 1.4, 99); + var LexoCorp = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp, 1.4, 1.4, 99); LexoCorp.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10938,59 +10946,59 @@ function initCompanies() { CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.OperationsManager, CompanyPositions.CFO, CompanyPositions.CEO, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.HeadOfSecurity]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp)) { - LexoCorp.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp)) { + LexoCorp.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenLexoCorp]; } AddToCompanies(LexoCorp); - var RhoConstruction = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction, 1.3, 1.3, 49); + var RhoConstruction = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction, 1.3, 1.3, 49); RhoConstruction.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction)) { - RhoConstruction.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction)) { + RhoConstruction.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumRhoConstruction]; } AddToCompanies(RhoConstruction); - var AlphaEnterprises = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises, 1.5, 1.5, 99); + var AlphaEnterprises = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises, 1.5, 1.5, 99); AlphaEnterprises.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, CompanyPositions.BusinessIntern, CompanyPositions.BusinessAnalyst, CompanyPositions.BusinessManager, CompanyPositions.OperationsManager]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises)) { - AlphaEnterprises.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises)) { + AlphaEnterprises.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12AlphaEnterprises]; } AddToCompanies(AlphaEnterprises); - var AevumPolice = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice, 1.3, 1.3, 99); + var AevumPolice = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice, 1.3, 1.3, 99); AevumPolice.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SecurityGuard, CompanyPositions.PoliceOfficer]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice)) { - AevumPolice.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice)) { + AevumPolice.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumPolice]; } AddToCompanies(AevumPolice); - var SysCoreSecurities = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities, 1.3, 1.3, 124); + var SysCoreSecurities = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities, 1.3, 1.3, 124); SysCoreSecurities.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware, CompanyPositions.CTO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities)) { - SysCoreSecurities.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities)) { + SysCoreSecurities.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenSysCoreSecurities]; } AddToCompanies(SysCoreSecurities); - var CompuTek = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek, 1.2, 1.2, 74); + var CompuTek = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek, 1.2, 1.2, 74); CompuTek.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -10998,13 +11006,13 @@ function initCompanies() { CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware, CompanyPositions.CTO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek)) { - CompuTek.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek)) { + CompuTek.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].VolhavenCompuTek]; } AddToCompanies(CompuTek); - var NetLinkTechnologies = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies, 1.2, 1.2, 99); + var NetLinkTechnologies = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies, 1.2, 1.2, 99); NetLinkTechnologies.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -11012,13 +11020,13 @@ function initCompanies() { CompanyPositions.ITManager, CompanyPositions.SysAdmin, CompanyPositions.SecurityEngineer, CompanyPositions.NetworkEngineer, CompanyPositions.NetworkAdministrator, CompanyPositions.HeadOfSoftware, CompanyPositions.CTO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies)) { - NetLinkTechnologies.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies)) { + NetLinkTechnologies.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].AevumNetLinkTechnologies]; } AddToCompanies(NetLinkTechnologies); - var CarmichaelSecurity = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity, 1.2, 1.2, 74); + var CarmichaelSecurity = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity, 1.2, 1.2, 74); CarmichaelSecurity.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, @@ -11028,47 +11036,47 @@ function initCompanies() { CompanyPositions.HeadOfEngineering, CompanyPositions.SecurityGuard, CompanyPositions.SecurityOfficer, CompanyPositions.SecuritySupervisor, CompanyPositions.HeadOfSecurity, CompanyPositions.FieldAgent, CompanyPositions.SecretAgent, CompanyPositions.SpecialOperative]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity)) { - CarmichaelSecurity.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity)) { + CarmichaelSecurity.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12CarmichaelSecurity]; } AddToCompanies(CarmichaelSecurity); //"Low level" companies - var FoodNStuff = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff, 1, 1, 0); + var FoodNStuff = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff, 1, 1, 0); FoodNStuff.addPositions([CompanyPositions.Employee, CompanyPositions.PartTimeEmployee]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff)) { - FoodNStuff.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff)) { + FoodNStuff.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12FoodNStuff]; } AddToCompanies(FoodNStuff); - var JoesGuns = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns, 1, 1, 0); + var JoesGuns = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns, 1, 1, 0); JoesGuns.addPositions([CompanyPositions.Employee, CompanyPositions.PartTimeEmployee]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns)) { - JoesGuns.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns)) { + JoesGuns.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].Sector12JoesGuns]; } AddToCompanies(JoesGuns); - var OmegaSoftware = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware, 1.1, 1.1, 49); + var OmegaSoftware = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware, 1.1, 1.1, 49); OmegaSoftware.addPositions([ CompanyPositions.SoftwareIntern, CompanyPositions.JuniorDev, CompanyPositions.SeniorDev, CompanyPositions.LeadDev, CompanyPositions.SoftwareConsultant, CompanyPositions.SeniorSoftwareConsultant, CompanyPositions.ITIntern, CompanyPositions.ITAnalyst, CompanyPositions.ITManager, CompanyPositions.CTO, CompanyPositions.CEO]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware)) { - OmegaSoftware.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware)) { + OmegaSoftware.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].IshimaOmegaSoftware]; } AddToCompanies(OmegaSoftware); /* Companies that do not have servers */ - var NoodleBar = new Company(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar, 1, 1, 0); + var NoodleBar = new Company(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar, 1, 1, 0); NoodleBar.addPositions([CompanyPositions.Waiter, CompanyPositions.PartTimeWaiter]); - if (companyExists(_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar)) { - NoodleBar.favor = Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar].favor; - delete Companies[_Location_js__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar]; + if (companyExists(_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar)) { + NoodleBar.favor = Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar].favor; + delete Companies[_Location__WEBPACK_IMPORTED_MODULE_1__["Locations"].NewTokyoNoodleBar]; } AddToCompanies(NoodleBar); } @@ -11077,7 +11085,7 @@ function initCompanies() { let Companies = {} function loadCompanies(saveString) { - Companies = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_3__["Reviver"]); + Companies = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_3__["Reviver"]); } //Add a Company object onto the map of all Companies in the game @@ -11147,24 +11155,25 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Faction", function() { return Faction; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purchaseAugmentation", function() { return purchaseAugmentation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factionExists", function() { return factionExists; }); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _FactionInfo_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FactionInfo.js */ 86); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Missions_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Missions.js */ 33); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_FactionInvitationBox_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/FactionInvitationBox.js */ 118); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./FactionInfo */ 86); +/* harmony import */ var _FactionInfo__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_FactionInfo__WEBPACK_IMPORTED_MODULE_4__); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Missions */ 33); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/FactionInvitationBox */ 118); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_13__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -11199,7 +11208,7 @@ function Faction(name="") { }; Faction.prototype.getInfo = function() { - const info = _FactionInfo_js__WEBPACK_IMPORTED_MODULE_4__["FactionInfos"][this.name]; + const info = _FactionInfo__WEBPACK_IMPORTED_MODULE_4__["FactionInfos"][this.name]; if(info == null) { throw new Error("Missing faction from FactionInfos: " + this.name+" this probably means the faction got corrupted somehow"); } @@ -11223,8 +11232,8 @@ Faction.prototype.getFavorGain = function() { if (this.favor == null || this.favor == undefined) {this.favor = 0;} if (this.rolloverRep == null || this.rolloverRep == undefined) {this.rolloverRep = 0;} var favorGain = 0, rep = this.playerReputation + this.rolloverRep; - var reqdRep = _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].FactionReputationToFavorBase * - Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].FactionReputationToFavorMult, this.favor); + var reqdRep = _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].FactionReputationToFavorBase * + Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].FactionReputationToFavorMult, this.favor); while(rep > 0) { if (rep >= reqdRep) { ++favorGain; @@ -11232,7 +11241,7 @@ Faction.prototype.getFavorGain = function() { } else { break; } - reqdRep *= _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].FactionReputationToFavorMult; + reqdRep *= _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].FactionReputationToFavorMult; } return [favorGain, rep]; } @@ -11240,28 +11249,28 @@ Faction.prototype.getFavorGain = function() { //Adds all Augmentations to this faction. Faction.prototype.addAllAugmentations = function() { this.augmentations.length = 0; - for (var name in _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"]) { - if (_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"].hasOwnProperty(name)) { + for (var name in _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"]) { + if (_Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"].hasOwnProperty(name)) { this.augmentations.push(name); } } } Faction.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_12__["Generic_toJSON"])("Faction", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_12__["Generic_toJSON"])("Faction", this); } Faction.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_12__["Generic_fromJSON"])(Faction, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_12__["Generic_fromJSON"])(Faction, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_12__["Reviver"].constructors.Faction = Faction; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_12__["Reviver"].constructors.Faction = Faction; //Map of factions indexed by faction name let Factions = {} function loadFactions(saveString) { - Factions = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_12__["Reviver"]); + Factions = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_12__["Reviver"]); } function AddToFactions(faction) { @@ -11276,7 +11285,7 @@ function factionExists(name) { //TODO Augmentation price and rep requirement mult are 1 for everything right now, // This might change in the future for balance function initFactions() { - for(const name in _FactionInfo_js__WEBPACK_IMPORTED_MODULE_4__["FactionInfos"]) { + for(const name in _FactionInfo__WEBPACK_IMPORTED_MODULE_4__["FactionInfos"]) { resetFaction(new Faction(name)); } } @@ -11297,20 +11306,20 @@ function resetFaction(newFactionObject) { } function inviteToFaction(faction) { - if (_Settings_js__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressFactionInvites) { + if (_Settings__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressFactionInvites) { faction.alreadyInvited = true; - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].factionInvitations.push(faction.name); - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Factions) { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadFactionsContent(); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].factionInvitations.push(faction.name); + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Factions) { + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadFactionsContent(); } } else { - Object(_utils_FactionInvitationBox_js__WEBPACK_IMPORTED_MODULE_10__["factionInvitationBoxCreate"])(faction); + Object(_utils_FactionInvitationBox__WEBPACK_IMPORTED_MODULE_10__["factionInvitationBoxCreate"])(faction); } } function joinFaction(faction) { faction.isMember = true; - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].factions.push(faction.name); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].factions.push(faction.name); const factionInfo = faction.getInfo(); //Determine what factions you are banned from now that you have joined this faction @@ -11328,17 +11337,17 @@ function displayFactionContent(factionName) { } var factionInfo = faction.getInfo(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionContent); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionContent); var elements = []; //Header and faction info - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("h1", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("h1", { innerText:factionName })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { innerHTML:"" + factionInfo.infoText + "" })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"---------------", })); @@ -11346,27 +11355,27 @@ function displayFactionContent(factionName) { var favorGain = faction.getFavorGain(); if (favorGain.length != 2) {favorGain = 0;} favorGain = favorGain[0]; - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText: "Reputation: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(faction.playerReputation, 4), tooltip:"You will earn " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(favorGain, 0) + " faction favor upon resetting after installing an Augmentation" })) - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"---------------", })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"Faction Favor: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(faction.favor, 0), tooltip:"Faction favor increases the rate at which " + "you earn reputation for this faction by 1% per favor. Faction favor " + "is gained whenever you reset after installing an Augmentation. The amount of " + "favor you gain depends on how much reputation you have with the faction" })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"---------------", })); //Faction Work Description Text - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { id:"faction-work-description-text", innerText:"Perform work/carry out assignments for your faction to help further its cause! By doing so " + "you will earn reputation for your faction. You will also gain reputation passively over time, " + @@ -11374,25 +11383,25 @@ function displayFactionContent(factionName) { "through this faction, which are powerful upgrades that enhance your abilities. Note that you cannot " + "use your terminal or create scripts when you are performing a task!" })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); //Hacking Mission Option - var hackMissionDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { + var hackMissionDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { id:"faction-hack-mission-div", class:"faction-work-div", }); - var hackMissionDivWrapper = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); + var hackMissionDivWrapper = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); hackMissionDiv.appendChild(hackMissionDivWrapper); - hackMissionDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + hackMissionDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Hacking Mission", clickListener:()=>{ - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadMissionContent(); - var mission = new _Missions_js__WEBPACK_IMPORTED_MODULE_6__["HackingMission"](faction.playerReputation, faction); - Object(_Missions_js__WEBPACK_IMPORTED_MODULE_6__["setInMission"])(true, mission); //Sets inMission flag to true + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadMissionContent(); + var mission = new _Missions__WEBPACK_IMPORTED_MODULE_6__["HackingMission"](faction.playerReputation, faction); + Object(_Missions__WEBPACK_IMPORTED_MODULE_6__["setInMission"])(true, mission); //Sets inMission flag to true mission.init(); return false; } })); - hackMissionDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + hackMissionDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"Attempt a hacking mission for your faction. " + "A mission is a mini game that, if won, earns you " + "significant reputation with this faction. (Recommended hacking level: 200+)" @@ -11400,19 +11409,19 @@ function displayFactionContent(factionName) { elements.push(hackMissionDiv); //Hacking Contracts Option - var hackDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { + var hackDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { id:"faction-hack-div", class:"faction-work-div", }); - var hackDivWrapper = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); + var hackDivWrapper = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); hackDiv.appendChild(hackDivWrapper); - hackDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + hackDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Hacking Contracts", clickListener:()=>{ - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].startFactionHackWork(faction); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].startFactionHackWork(faction); return false; } })); - hackDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + hackDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"Complete hacking contracts for your faction. " + "Your effectiveness, which determines how much " + "reputation you gain for this faction, is based on your hacking skill. " + @@ -11421,19 +11430,19 @@ function displayFactionContent(factionName) { elements.push(hackDiv); //Field Work Option - var fieldWorkDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { + var fieldWorkDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { id:"faction-fieldwork-div", class:"faction-work-div" }); - var fieldWorkDivWrapper = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); + var fieldWorkDivWrapper = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); fieldWorkDiv.appendChild(fieldWorkDivWrapper); - fieldWorkDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + fieldWorkDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Field Work", clickListener:()=>{ - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].startFactionFieldWork(faction); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].startFactionFieldWork(faction); return false; } })); - fieldWorkDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + fieldWorkDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"Carry out field missions for your faction. " + "Your effectiveness, which determines how much " + "reputation you gain for this faction, is based on all of your stats. " + @@ -11442,19 +11451,19 @@ function displayFactionContent(factionName) { elements.push(fieldWorkDiv); //Security Work Option - var securityWorkDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { + var securityWorkDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { id:"faction-securitywork-div", class:"faction-work-div" }); - var securityWorkDivWrapper = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); + var securityWorkDivWrapper = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); securityWorkDiv.appendChild(securityWorkDivWrapper); - securityWorkDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + securityWorkDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Security Work", clickListener:()=>{ - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].startFactionSecurityWork(faction); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].startFactionSecurityWork(faction); return false; } })); - securityWorkDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + securityWorkDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"Serve in a security detail for your faction. " + "Your effectiveness, which determines how much " + "reputation you gain for this faction, is based on your combat stats. " + @@ -11463,40 +11472,40 @@ function displayFactionContent(factionName) { elements.push(securityWorkDiv); //Donate for reputation - var donateDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { + var donateDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { id:"faction-donate-div", class:"faction-work-div" }); - var donateDivWrapper = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); + var donateDivWrapper = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); donateDiv.appendChild(donateDivWrapper); - var donateRepGain = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + var donateRepGain = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"This donation will result in 0 reputation gain" }); - var donateAmountInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("input", { + var donateAmountInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("input", { placeholder:"Donation amount", inputListener:()=>{ var amt = parseFloat(donateAmountInput.value); if (isNaN(amt) || amt < 0) { donateRepGain.innerText = "Invalid donate amount entered!"; } else { - var repGain = amt / 1e6 * _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].faction_rep_mult; + var repGain = amt / 1e6 * _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].faction_rep_mult; donateRepGain.innerText = "This donation will result in " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(repGain, 3) + " reputation gain"; } }, }); - donateDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + donateDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Donate Money", clickListener:()=>{ var amt = parseFloat(donateAmountInput.value); if (isNaN(amt) || amt < 0) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Invalid amount entered!"); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].money.lt(amt)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You cannot afford to donate this much money!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Invalid amount entered!"); + } else if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].money.lt(amt)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You cannot afford to donate this much money!"); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].loseMoney(amt); - var repGain = amt / 1e6 * _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].faction_rep_mult; + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].loseMoney(amt); + var repGain = amt / 1e6 * _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].faction_rep_mult; faction.playerReputation += repGain; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You just donated " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_13___default()(amt).format("$0.000a") + " to " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You just donated " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_13___default()(amt).format("$0.000a") + " to " + faction.name + " to gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(repGain, 3) + " reputation"); displayFactionContent(factionName); } @@ -11507,16 +11516,16 @@ function displayFactionContent(factionName) { elements.push(donateDiv); //Purchase Augmentations - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("pre", { innerHTML: "
As your reputation with this faction rises, you will " + "unlock Augmentations, which you can purchase to enhance " + "your abilities.

" })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Purchase Augmentations", clickListener:()=>{ - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].hideAllContent(); - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionAugmentationsContent.style.display = "block"; + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].hideAllContent(); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionAugmentationsContent.style.display = "block"; displayFactionAugmentations(factionName); @@ -11525,7 +11534,7 @@ function displayFactionContent(factionName) { })); //Gang (BitNode-2) - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].bitNodeN == 2 && (factionName == "Slum Snakes" || factionName == "Tetrads" || + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].bitNodeN == 2 && (factionName == "Slum Snakes" || factionName == "Tetrads" || factionName == "The Syndicate" || factionName == "The Dark Army" || factionName == "Speakers for the Dead" || factionName == "NiteSec" || factionName == "The Black Hand")) { //Set everything else to invisible @@ -11536,51 +11545,51 @@ function displayFactionContent(factionName) { donateDiv.style.display = "none"; //Create the 'Manage Gang' button - var gangDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { + var gangDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", { id:"faction-gang-div", class:"faction-work-div", display:"inline" }); - var gangDivWrapper = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); + var gangDivWrapper = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {class:"faction-work-div-wrapper"}); gangDiv.appendChild(gangDivWrapper); - gangDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + gangDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { class:"a-link-button", innerText:"Manage Gang", clickListener:()=>{ - if (!_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].inGang()) { - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetNoButton"])(); + if (!_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].inGang()) { + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Create Gang"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", () => { var hacking = false; if (factionName === "NiteSec" || factionName === "The Black Hand") {hacking = true;} - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].startGang(factionName, hacking); - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadGangContent(); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].startGang(factionName, hacking); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadGangContent(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); }); noBtn.addEventListener("click", () => { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxCreate"])("Would you like to create a new Gang with " + factionName + "?

" + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxCreate"])("Would you like to create a new Gang with " + factionName + "?

" + "Note that this will prevent you from creating a Gang with any other Faction until " + "this BitNode is destroyed. There are NO differences between the Factions you can " + "create a Gang with and each of these Factions have all Augmentations available"); } else { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadGangContent(); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadGangContent(); } } })); - gangDivWrapper.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + gangDivWrapper.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { innerText:"Create and manage a gang for this Faction. " + "Gangs will earn you money and faction reputation." })); //Manage Gang button goes before Faction work stuff elements.splice(7, 1, gangDiv); - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].inGang() && _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].gang.facName != factionName) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].inGang() && _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].gang.facName != factionName) { //If the player has a gang but its not for this faction gangDiv.style.display = "none"; } //Display all elements for (var i = 0; i < elements.length; ++i) { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionContent.appendChild(elements[i]); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionContent.appendChild(elements[i]); } return; } @@ -11589,7 +11598,7 @@ function displayFactionContent(factionName) { throw new Error("Not a member of this faction, cannot display faction information"); } - donateDiv.style.display = faction.favor >= (150 * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].RepToDonateToFaction) ? "inline" : "none"; + donateDiv.style.display = faction.favor >= (150 * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].RepToDonateToFaction) ? "inline" : "none"; hackMissionDiv.style.display = factionInfo.offerHackingMission ? "inline": "none"; hackDiv.style.display = factionInfo.offerHackingWork ? "inline" : "none"; @@ -11598,7 +11607,7 @@ function displayFactionContent(factionName) { //Display all elements for (var i = 0; i < elements.length; ++i) { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionContent.appendChild(elements[i]); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionContent.appendChild(elements[i]); } } @@ -11609,71 +11618,71 @@ function displayFactionAugmentations(factionName) { throw new Error("Could not find faction " + factionName + " in displayFactionAugmentations"); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionAugmentationsContent); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionAugmentationsContent); var elements = []; //Back button - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { innerText:"Back", class:"a-link-button", clickListener:()=>{ - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadFactionContent(); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadFactionContent(); displayFactionContent(factionName); return false; } })); //Header text - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("h1", {innerText:"Faction Augmentations"})); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("h1", {innerText:"Faction Augmentations"})); + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { id:"faction-augmentations-page-desc", innerHTML:"Lists all Augmentations that are available to purchase from " + factionName + "

" + "Augmentations are powerful upgrades that will enhance your abilities." })); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); - elements.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); + elements.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("br")); //Augmentations List - var augmentationsList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("ul"); + var augmentationsList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("ul"); //Sort buttons - var sortByCostBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + var sortByCostBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { innerText:"Sort by Cost", class:"a-link-button", clickListener:()=>{ sortOption = "cost"; var augs = faction.augmentations.slice(); augs.sort((augName1, augName2)=>{ - var aug1 = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName1], aug2 = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName2]; + var aug1 = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName1], aug2 = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName2]; if (aug1 == null || aug2 == null) { throw new Error("Invalid Augmentation Names"); } return aug1.baseCost - aug2.baseCost; }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(augmentationsList); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(augmentationsList); createFactionAugmentationDisplayElements(augmentationsList, augs, faction); } }); - var sortByRepBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + var sortByRepBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { innerText:"Sort by Reputation", class:"a-link-button", clickListener:()=>{ sortOption = "reputation"; var augs = faction.augmentations.slice(); augs.sort((augName1, augName2)=>{ - var aug1 = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName1], aug2 = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName2]; + var aug1 = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName1], aug2 = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augName2]; if (aug1 == null || aug2 == null) { throw new Error("Invalid Augmentation Names"); } return aug1.baseRepRequirement - aug2.baseRepRequirement; }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(augmentationsList); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(augmentationsList); createFactionAugmentationDisplayElements(augmentationsList, augs, faction); } }); - var defaultSortBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + var defaultSortBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { innerText:"Sort by Default Order", class:"a-link-button", clickListener:()=>{ sortOption = "default"; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(augmentationsList); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["removeChildrenFromElement"])(augmentationsList); createFactionAugmentationDisplayElements(augmentationsList, faction.augmentations, faction); } }); @@ -11695,7 +11704,7 @@ function displayFactionAugmentations(factionName) { elements.push(augmentationsList); for (var i = 0; i < elements.length; ++i) { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionAugmentationsContent.appendChild(elements[i]); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Display.factionAugmentationsContent.appendChild(elements[i]); } } @@ -11710,32 +11719,32 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti for (var i = 0; i < augs.length; ++i) { (function () { - var aug = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augs[i]]; + var aug = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][augs[i]]; if (aug == null) { throw new Error("Invalid Augmentation when trying to create Augmentation display Elements"); } var owned = false; - for (var j = 0; j < _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length; ++j) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations[j].name == aug.name) { + for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length; ++j) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations[j].name == aug.name) { owned = true; break; } } - for (var j = 0; j < _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations.length; ++j) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations[j].name == aug.name) { + for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations.length; ++j) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations[j].name == aug.name) { owned = true; break; } } - var item = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("li"); - var span = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("span", {display:"inline-block"}); - var aDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {tooltip:aug.info}); - var aElem = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { + var item = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("li"); + var span = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("span", {display:"inline-block"}); + var aDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("div", {tooltip:aug.info}); + var aElem = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("a", { innerText:aug.name, display:"inline", clickListener:()=>{ - console.log('sup buy in fac: '+_Settings_js__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressBuyAugmentationConfirmation); - if (!_Settings_js__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressBuyAugmentationConfirmation) { + console.log('sup buy in fac: '+_Settings__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressBuyAugmentationConfirmation); + if (!_Settings__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressBuyAugmentationConfirmation) { purchaseAugmentationBoxCreate(aug, faction); } else { purchaseAugmentation(aug, faction); @@ -11743,10 +11752,10 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti return false; } }); - if (aug.name == _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { + if (aug.name == _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { aElem.innerText += " - Level " + (getNextNeurofluxLevel()); } - var pElem = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { + var pElem = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["createElement"])("p", { display:"inline", }) var req = aug.baseRepRequirement * factionInfo.augmentationRepRequirementMult; @@ -11755,7 +11764,7 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti aElem.setAttribute("class", "a-link-button-inactive"); pElem.innerHTML = "LOCKED (Requires " + aug.prereqs.join(",") + " as prerequisite(s))"; pElem.style.color = "red"; - } else if (aug.name != _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor && (aug.owned || owned)) { + } else if (aug.name != _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor && (aug.owned || owned)) { aElem.setAttribute("class", "a-link-button-inactive"); pElem.innerHTML = "ALREADY OWNED"; } else if (faction.playerReputation >= req) { @@ -11777,17 +11786,17 @@ function createFactionAugmentationDisplayElements(augmentationsList, augs, facti function purchaseAugmentationBoxCreate(aug, fac) { const factionInfo = fac.getInfo(); - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Purchase"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", function() { purchaseAugmentation(aug, fac); }); noBtn.addEventListener("click", function() { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxCreate"])("

" + aug.name + "


" + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxCreate"])("

" + aug.name + "


" + aug.info + "

" + "
Would you like to purchase the " + aug.name + " Augmentation for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_14__["formatNumber"])(aug.baseCost * factionInfo.augmentationPriceMult, 2) + "?"); @@ -11799,7 +11808,7 @@ function hasAugmentationPrereqs(aug) { var hasPrereqs = true; if (aug.prereqs && aug.prereqs.length > 0) { for (var i = 0; i < aug.prereqs.length; ++i) { - var prereqAug = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][aug.prereqs[i]]; + var prereqAug = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][aug.prereqs[i]]; if (prereqAug == null) { console.log("ERROR: Invalid prereq Augmentation: " + aug.prereqs[i]); continue; @@ -11808,8 +11817,8 @@ function hasAugmentationPrereqs(aug) { hasPrereqs = false; //Check if the aug is purchased - for (var j = 0; j < _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length; ++j) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations[j].name === prereqAug.name) { + for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length; ++j) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations[j].name === prereqAug.name) { hasPrereqs = true; break; } @@ -11826,55 +11835,55 @@ function purchaseAugmentation(aug, fac, sing=false) { if (!hasPrereqs) { var txt = "You must first purchase or install " + aug.prereqs.join(",") + " before you can " + "purchase this one."; - if (sing) {return txt;} else {Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])(txt);} - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].money.lt(aug.baseCost * factionInfo.augmentationPriceMult)) { + if (sing) {return txt;} else {Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])(txt);} + } else if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].money.lt(aug.baseCost * factionInfo.augmentationPriceMult)) { let txt = "You don't have enough money to purchase " + aug.name; if (sing) {return txt;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])(txt); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])(txt); } else if (fac.playerReputation < aug.baseRepRequirement) { let txt = "You don't have enough faction reputation to purchase " + aug.name; if (sing) {return txt;} - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])(txt); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].money.gte(aug.baseCost * factionInfo.augmentationPriceMult)) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].firstAugPurchased === false) { - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].firstAugPurchased = true; + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])(txt); + } else if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].money.gte(aug.baseCost * factionInfo.augmentationPriceMult)) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].firstAugPurchased === false) { + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].firstAugPurchased = true; document.getElementById("augmentations-tab").style.display = "list-item"; document.getElementById("character-menu-header").click(); document.getElementById("character-menu-header").click(); } - var queuedAugmentation = new _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["PlayerOwnedAugmentation"](aug.name); - if (aug.name == _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { + var queuedAugmentation = new _Augmentations__WEBPACK_IMPORTED_MODULE_0__["PlayerOwnedAugmentation"](aug.name); + if (aug.name == _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { queuedAugmentation.level = getNextNeurofluxLevel(); } - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.push(queuedAugmentation); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.push(queuedAugmentation); - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].loseMoney((aug.baseCost * factionInfo.augmentationPriceMult)); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].loseMoney((aug.baseCost * factionInfo.augmentationPriceMult)); //If you just purchased Neuroflux Governor, recalculate the cost - if (aug.name == _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { + if (aug.name == _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { var nextLevel = getNextNeurofluxLevel(); --nextLevel; - var mult = Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].NeuroFluxGovernorLevelMult, nextLevel); - aug.baseRepRequirement = 500 * mult * _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].AugmentationRepMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].AugmentationRepCost; - aug.baseCost = 750e3 * mult * _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].AugmentationCostMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].AugmentationMoneyCost; + var mult = Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].NeuroFluxGovernorLevelMult, nextLevel); + aug.baseRepRequirement = 500 * mult * _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].AugmentationRepMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].AugmentationRepCost; + aug.baseCost = 750e3 * mult * _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].AugmentationCostMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].AugmentationMoneyCost; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length-1; ++i) { - aug.baseCost *= _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].MultipleAugMultiplier; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length-1; ++i) { + aug.baseCost *= _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].MultipleAugMultiplier; } } - for (var name in _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"]) { - if (_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"].hasOwnProperty(name)) { - _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][name].baseCost *= _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].MultipleAugMultiplier; + for (var name in _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"]) { + if (_Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"].hasOwnProperty(name)) { + _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][name].baseCost *= _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].MultipleAugMultiplier; } } if (sing) { return "You purchased " + aug.name; } else { - if(!_Settings_js__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressBuyAugmentationConfirmation){ - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You purchased " + aug.name + ". It's enhancements will not take " + + if(!_Settings__WEBPACK_IMPORTED_MODULE_8__["Settings"].SuppressBuyAugmentationConfirmation){ + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You purchased " + aug.name + ". It's enhancements will not take " + "effect until they are installed. To install your augmentations, go to the " + "'Augmentations' tab on the left-hand navigation menu. Purchasing additional " + "augmentations will now be more expensive."); @@ -11883,19 +11892,19 @@ function purchaseAugmentation(aug, fac, sing=false) { displayFactionAugmentations(fac.name); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Hmm, something went wrong when trying to purchase an Augmentation. " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Hmm, something went wrong when trying to purchase an Augmentation. " + "Please report this to the game developer with an explanation of how to " + "reproduce this."); } - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_15__["yesNoBoxClose"])(); } function getNextNeurofluxLevel() { - var aug = _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor]; + var aug = _Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor]; if (aug == null) { - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations[i].name == _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { - aug = _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations[i]; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations[i].name == _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { + aug = _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].augmentations[i]; } } if (aug == null) { @@ -11906,8 +11915,8 @@ function getNextNeurofluxLevel() { } } var nextLevel = aug.level + 1; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations[i].name == _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_7__["Player"].queuedAugmentations[i].name == _Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].NeuroFluxGovernor) { ++nextLevel; } } @@ -11915,7 +11924,7 @@ function getNextNeurofluxLevel() { } function processPassiveFactionRepGain(numCycles) { - var numTimesGain = (numCycles / 600) * _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].faction_rep_mult; + var numTimesGain = (numCycles / 600) * _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].faction_rep_mult; for (var name in Factions) { if (Factions.hasOwnProperty(name)) { var faction = Factions[name]; @@ -11923,7 +11932,7 @@ function processPassiveFactionRepGain(numCycles) { //TODO Get hard value of 1 rep per "rep gain cycle"" for now.. //maybe later make this based on //a player's 'status' like how powerful they are and how much money they have - if (faction.isMember) {faction.playerReputation += (numTimesGain * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionPassiveRepGain);} + if (faction.isMember) {faction.playerReputation += (numTimesGain * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].FactionPassiveRepGain);} } } } @@ -11950,7 +11959,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yesNoBoxClose", function() { return yesNoBoxClose; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yesNoTxtInpBoxClose", function() { return yesNoTxtInpBoxClose; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "yesNoBoxOpen", function() { return yesNoBoxOpen; }); -/* harmony import */ var _HelperFunctions_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HelperFunctions.js */ 1); +/* harmony import */ var _HelperFunctions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HelperFunctions */ 1); /* Generic Yes-No Pop-up box * Can be used to create pop-up boxes that require a yes/no response from player @@ -11968,11 +11977,11 @@ function yesNoBoxClose() { } function yesNoBoxGetYesButton() { - return Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-box-yes"); + return Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-box-yes"); } function yesNoBoxGetNoButton() { - return Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-box-no"); + return Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-box-no"); } function yesNoBoxCreate(txt) { @@ -12006,11 +12015,11 @@ function yesNoTxtInpBoxClose() { } function yesNoTxtInpBoxGetYesButton() { - return Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-text-input-box-yes"); + return Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-text-input-box-yes"); } function yesNoTxtInpBoxGetNoButton() { - return Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-text-input-box-no"); + return Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_0__["clearEventListeners"])("yes-no-text-input-box-no"); } function yesNoTxtInpBoxGetInput() { @@ -12073,7 +12082,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BitNodes", function() { return BitNodes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BitNodeMultipliers", function() { return BitNodeMultipliers; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initBitNodeMultipliers", function() { return initBitNodeMultipliers; }); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player.js */ 0); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); function BitNode(n, name, desc="", info="") { @@ -12168,9 +12177,9 @@ function initBitNodes() { "in the game.

" + "In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function, " + "and will also raise all of your hacking-related multipliers by:

" + - "Level 1: 4%
" + - "Level 2: 6%
" + - "Level 3: 7%"); + "Level 1: 8%
" + + "Level 2: 12%
" + + "Level 3: 14%"); BitNodes["BitNode6"] = new BitNode(6, "Bladeburners", "Like Tears in Rain", "In the middle of the 21st century, OmniTek Incorporated began designing and manufacturing advanced synthetic " + "androids, or Synthoids for short. They achieved a major technological breakthrough in the sixth generation " + @@ -12199,7 +12208,7 @@ function initBitNodes() { "and more intelligent than the humans that had created them.

" + "In this BitNode you will be able to access the Bladeburner API, which allows you to access Bladeburner " + "functionality through Netscript. Furthermore:

" + - "The rank you gain from Bladeburner contracts/operations is reduced by 50%
" + + "The rank you gain from Bladeburner contracts/operations is reduced by 40%
" + "Bladeburner skills cost twice as many skill points
" + "Augmentations are 3x more expensive
" + "Hacking and Hacknet Nodes will be significantly less profitable
" + @@ -12228,7 +12237,7 @@ function initBitNodes() { "Level 2: Ability to short stocks in other BitNodes
" + "Level 3: Ability to use limit/stop orders in other BitNodes

" + "This Source-File also increases your hacking growth multipliers by: " + - "
Level 1: 8%
Level 2: 12%
Level 3: 14%"); + "
Level 1: 12%
Level 2: 18%
Level 3: 21%"); BitNodes["BitNode9"] = new BitNode(9, "Do Androids Dream?", "COMING SOON"); BitNodes["BitNode10"] = new BitNode(10, "MegaCorp", "COMING SOON"); //Not sure yet BitNodes["BitNode11"] = new BitNode(11, "The Big Crash", "Okay. Sell it all.", @@ -12258,7 +12267,8 @@ function initBitNodes() { "To iterate is human, to recurse divine.

" + "Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give your Souce-File 12, or " + "if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level " + - "of Source-File 12 will increase all of your multipliers by 1%."); + "of Source-File 12 will increase all of your multipliers by 1%. This effect is additive with itself, NOT multiplicative. In other words, " + + "level N of this Source-File will increase all of your multipliers by N%"); //Books: Frontera, Shiner BitNodes["BitNode13"] = new BitNode(13, "fOS", "COMING SOON"); //Unlocks the new game mode and the rest of the BitNodes BitNodes["BitNode14"] = new BitNode(14, "", "COMING SOON"); @@ -12312,8 +12322,8 @@ let BitNodeMultipliers = { } function initBitNodeMultipliers() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bitNodeN == null) { - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bitNodeN = 1; + if (_Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bitNodeN == null) { + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bitNodeN = 1; } for (var mult in BitNodeMultipliers) { if (BitNodeMultipliers.hasOwnProperty(mult)) { @@ -12321,7 +12331,7 @@ function initBitNodeMultipliers() { } } - switch (_Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bitNodeN) { + switch (_Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bitNodeN) { case 1: //Source Genesis (every multiplier is 1) break; case 2: //Rise of the Underworld @@ -12386,7 +12396,7 @@ function initBitNodeMultipliers() { BitNodeMultipliers.HackExpGain = 0.25; break; case 7: //Bladeburner 2079 - BitNodeMultipliers.BladeburnerRank = 0.5; + BitNodeMultipliers.BladeburnerRank = 0.6; BitNodeMultipliers.BladeburnerSkillCost = 2; BitNodeMultipliers.AugmentationMoneyCost = 3; BitNodeMultipliers.HackingLevelMultiplier = 0.5; @@ -12427,9 +12437,9 @@ function initBitNodeMultipliers() { break; case 12: //The Recursion let sf12Lvl = 0; - for (let i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].sourceFiles.length; i++) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].sourceFiles[i].n === 12) { - sf12Lvl = _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].sourceFiles[i].lvl; + for (let i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].sourceFiles.length; i++) { + if (_Player__WEBPACK_IMPORTED_MODULE_0__["Player"].sourceFiles[i].n === 12) { + sf12Lvl = _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].sourceFiles[i].lvl; } } const inc = Math.pow(1.01, sf12Lvl); @@ -12488,7 +12498,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createRandomIp", function() { return createRandomIp; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ipExists", function() { return ipExists; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isValidIPAddress", function() { return isValidIPAddress; }); -/* harmony import */ var _src_Server_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Server.js */ 8); +/* harmony import */ var _src_Server__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Server */ 8); /* Functions to deal with manipulating IP addresses*/ @@ -12509,8 +12519,8 @@ function createRandomIp() { //Returns true if the IP already exists in one of the game's servers function ipExists(ip) { - for (var property in _src_Server_js__WEBPACK_IMPORTED_MODULE_0__["AllServers"]) { - if (_src_Server_js__WEBPACK_IMPORTED_MODULE_0__["AllServers"].hasOwnProperty(property)) { + for (var property in _src_Server__WEBPACK_IMPORTED_MODULE_0__["AllServers"]) { + if (_src_Server__WEBPACK_IMPORTED_MODULE_0__["AllServers"].hasOwnProperty(property)) { if (property == ip) { return true; } @@ -12552,21 +12562,21 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "augmentationExists", function() { return augmentationExists; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Augmentation", function() { return Augmentation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayAugmentationsContent", function() { return displayAugmentationsContent; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Prestige_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Prestige.js */ 56); -/* harmony import */ var _SaveObject_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SaveObject.js */ 45); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _SourceFile_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SourceFile.js */ 40); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Prestige */ 56); +/* harmony import */ var _SaveObject__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./SaveObject */ 45); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./SourceFile */ 40); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_15__); @@ -12589,7 +12599,7 @@ __webpack_require__.r(__webpack_exports__); //Augmentations function Augmentation(params) { if (params.name == null || params.info == null || params.moneyCost == null || params.repCost == null) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("ERROR Creating Augmentations. This is a bug please contact game dev"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("ERROR Creating Augmentations. This is a bug please contact game dev"); return; } this.name = params.name; @@ -12598,8 +12608,8 @@ function Augmentation(params) { this.prereqs = params.prereqs ? params.prereqs : []; //Price and reputation base requirements (can change based on faction multipliers) - this.baseRepRequirement = params.repCost * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationRepMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationRepCost; - this.baseCost = params.moneyCost * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationCostMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationMoneyCost; + this.baseRepRequirement = params.repCost * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationRepMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationRepCost; + this.baseCost = params.moneyCost * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationCostMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationMoneyCost; //Level - Only applicable for some augmentations // NeuroFlux Governor @@ -12609,7 +12619,7 @@ function Augmentation(params) { //Takes in an array of faction names and adds this augmentation to all of those factions Augmentation.prototype.addToFactions = function(factionList) { for (var i = 0; i < factionList.length; ++i) { - var faction = _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"][factionList[i]]; + var faction = _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"][factionList[i]]; if (faction == null) { throw new Error("In Augmentation.addToFactions(), could not find faction with this name:" + factionList[i]); continue; @@ -12619,9 +12629,9 @@ Augmentation.prototype.addToFactions = function(factionList) { } Augmentation.prototype.addToAllFactions = function() { - for (var fac in _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]) { - if (_Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"].hasOwnProperty(fac)) { - var facObj = _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"][fac]; + for (var fac in _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]) { + if (_Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"].hasOwnProperty(fac)) { + var facObj = _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"][fac]; if (facObj == null) { console.log("ERROR: Invalid faction object"); continue; @@ -12632,14 +12642,14 @@ Augmentation.prototype.addToAllFactions = function() { } Augmentation.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("Augmentation", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("Augmentation", this); } Augmentation.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(Augmentation, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(Augmentation, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.Augmentation = Augmentation; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.Augmentation = Augmentation; let Augmentations = {} @@ -12762,14 +12772,14 @@ let AugmentationNames = { } function initAugmentations() { - for (var name in _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]) { - if (_Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"].hasOwnProperty(name)) { - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"][name].augmentations = []; + for (var name in _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]) { + if (_Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"].hasOwnProperty(name)) { + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"][name].augmentations = []; } } //Reset Augmentations - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["clearObject"])(Augmentations); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["clearObject"])(Augmentations); //Combat stat augmentations var HemoRecirculator = new Augmentation({ @@ -13587,11 +13597,11 @@ function initAugmentations() { "This is a special augmentation because it can be leveled up infinitely. Each level of this augmentation " + "increases ALL of the player's multipliers by 1%" }); - var nextLevel = Object(_Faction_js__WEBPACK_IMPORTED_MODULE_3__["getNextNeurofluxLevel"])(); + var nextLevel = Object(_Faction__WEBPACK_IMPORTED_MODULE_3__["getNextNeurofluxLevel"])(); NeuroFluxGovernor.level = nextLevel - 1; - mult = Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].NeuroFluxGovernorLevelMult, NeuroFluxGovernor.level); - NeuroFluxGovernor.baseRepRequirement = 500 * mult * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationRepMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationRepCost; - NeuroFluxGovernor.baseCost = 750e3 * mult * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationCostMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationMoneyCost; + mult = Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].NeuroFluxGovernorLevelMult, NeuroFluxGovernor.level); + NeuroFluxGovernor.baseRepRequirement = 500 * mult * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationRepMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationRepCost; + NeuroFluxGovernor.baseCost = 750e3 * mult * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].AugmentationCostMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].AugmentationMoneyCost; if (augmentationExists(AugmentationNames.NeuroFluxGovernor)) { delete Augmentations[AugmentationNames.NeuroFluxGovernor]; } @@ -14106,20 +14116,20 @@ function initAugmentations() { //For BitNode-2, add all Augmentations to crime/evil factions. //Do this before adding special Augmentations that become available in later BitNodes - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN === 2) { + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN === 2) { console.log("Adding all augmentations to crime factions for Bit node 2"); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["Slum Snakes"].addAllAugmentations(); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["Tetrads"].addAllAugmentations(); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["The Syndicate"].addAllAugmentations(); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["The Dark Army"].addAllAugmentations(); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["Speakers for the Dead"].addAllAugmentations(); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["NiteSec"].addAllAugmentations(); - _Faction_js__WEBPACK_IMPORTED_MODULE_3__["Factions"]["The Black Hand"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["Slum Snakes"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["Tetrads"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["The Syndicate"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["The Dark Army"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["Speakers for the Dead"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["NiteSec"].addAllAugmentations(); + _Faction__WEBPACK_IMPORTED_MODULE_3__["Factions"]["The Black Hand"].addAllAugmentations(); } //Special Bladeburner Augmentations var BladeburnersFactionName = "Bladeburners"; - if (Object(_Faction_js__WEBPACK_IMPORTED_MODULE_3__["factionExists"])(BladeburnersFactionName)) { + if (Object(_Faction__WEBPACK_IMPORTED_MODULE_3__["factionExists"])(BladeburnersFactionName)) { var EsperEyewear = new Augmentation({ name:AugmentationNames.EsperEyewear, repCost:500, moneyCost:33e6, info:"Ballistic-grade protective and retractable eyewear that was designed specially " + @@ -14351,14 +14361,14 @@ function initAugmentations() { } //Update costs based on how many have been purchased - var mult = Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultipleAugMultiplier, _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length); + var mult = Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultipleAugMultiplier, _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length); for (var name in Augmentations) { if (Augmentations.hasOwnProperty(name)) { Augmentations[name].baseCost *= mult; } } - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].reapplyAllAugmentations(); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].reapplyAllAugmentations(); } //Resets an Augmentation during (re-initizliation) @@ -14378,557 +14388,557 @@ function applyAugmentation(aug, reapply=false) { switch(aug.name) { //Combat stat augmentations case AugmentationNames.Targeting1: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.10; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.10; break; case AugmentationNames.Targeting2: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.20; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.20; break; case AugmentationNames.Targeting3: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.30; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.30; break; case AugmentationNames.SyntheticHeart: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.5; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.5; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.5; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.5; break; case AugmentationNames.SynfibrilMuscle: //Medium-high level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.3; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.3; break; case AugmentationNames.CombatRib1: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.1; break; case AugmentationNames.CombatRib2: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.14; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.14; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.14; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.14; break; case AugmentationNames.CombatRib3: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.18; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.18; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.18; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.18; break; case AugmentationNames.NanofiberWeave: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.2; break; case AugmentationNames.SubdermalArmor: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 2.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 2.2; break; case AugmentationNames.WiredReflexes: //Low level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.05; break; case AugmentationNames.GrapheneBoneLacings: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.7; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.7; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.7; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.7; break; case AugmentationNames.BionicSpine: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.15; break; case AugmentationNames.GrapheneBionicSpine: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.6; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.6; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.6; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.6; break; case AugmentationNames.BionicLegs: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.6; break; case AugmentationNames.GrapheneBionicLegs: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 2.5; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 2.5; break; //Labor stats augmentations case AugmentationNames.EnhancedSocialInteractionImplant: //Med-high level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.6; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.6; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.6; break; case AugmentationNames.TITN41Injection: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.15; break; case AugmentationNames.SpeechProcessor: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.2; break; //Hacking augmentations case AugmentationNames.BitWire: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.05; break; case AugmentationNames.ArtificialBioNeuralNetwork: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.12; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.12; break; case AugmentationNames.ArtificialSynapticPotentiation: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.05; break; case AugmentationNames.EnhancedMyelinSheathing: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; break; case AugmentationNames.SynapticEnhancement: //Low Level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; break; case AugmentationNames.NeuralRetentionEnhancement: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.25; break; case AugmentationNames.DataJack: //Med low level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.25; break; case AugmentationNames.ENM: //Medium level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; break; case AugmentationNames.ENMCore: //Medium level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.07; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.07; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.07; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.07; break; case AugmentationNames.ENMCoreV2: //Medium high level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.3; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; break; case AugmentationNames.ENMCoreV3: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.25; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; break; case AugmentationNames.ENMAnalyzeEngine: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.1; break; case AugmentationNames.ENMDMA: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.2; break; case AugmentationNames.Neuralstimulator: //Medium Level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.12; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.12; break; case AugmentationNames.NeuralAccelerator: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.2; break; case AugmentationNames.CranialSignalProcessorsG1: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.05; break; case AugmentationNames.CranialSignalProcessorsG2: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.07; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.07; break; case AugmentationNames.CranialSignalProcessorsG3: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.09; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.09; break; case AugmentationNames.CranialSignalProcessorsG4: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 1.25; break; case AugmentationNames.CranialSignalProcessorsG5: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.3; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.25; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 1.75; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 1.75; break; case AugmentationNames.NeuronalDensification: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; break; //Work augmentations case AugmentationNames.NuoptimalInjectorImplant: //Low medium level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.2; break; case AugmentationNames.SpeechEnhancement: //Low level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.1; break; case AugmentationNames.FocusWire: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].work_money_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].work_money_mult *= 1.2; break; case AugmentationNames.PCDNI: //Med level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.3; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; break; case AugmentationNames.PCDNIOptimizer: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.75; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.75; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; break; case AugmentationNames.PCDNINeuralNetwork: //High level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; break; case AugmentationNames.ADRPheromone1: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.1; break; case AugmentationNames.ADRPheromone2: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.2; break; //Hacknet Node Augmentations case AugmentationNames.HacknetNodeCPUUpload: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_purchase_cost_mult *= 0.85; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_purchase_cost_mult *= 0.85; break; case AugmentationNames.HacknetNodeCacheUpload: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.10; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_level_cost_mult *= 0.85; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.10; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_level_cost_mult *= 0.85; break; case AugmentationNames.HacknetNodeNICUpload: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_purchase_cost_mult *= 0.9; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_purchase_cost_mult *= 0.9; break; case AugmentationNames.HacknetNodeKernelDNI: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.25; break; case AugmentationNames.HacknetNodeCoreDNI: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.45; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.45; break; //Misc augmentations case AugmentationNames.NeuroFluxGovernor: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.01; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_purchase_cost_mult *= 0.99; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_ram_cost_mult *= 0.99; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_core_cost_mult *= 0.99; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_level_cost_mult *= 0.99; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_money_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_purchase_cost_mult *= 0.99; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_ram_cost_mult *= 0.99; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_core_cost_mult *= 0.99; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacknet_node_level_cost_mult *= 0.99; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].work_money_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].work_money_mult *= 1.01; if (!reapply) { Augmentations[aug.name].level = aug.level; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations[i].name == AugmentationNames.NeuroFluxGovernor) { - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations[i].level = aug.level; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations[i].name == AugmentationNames.NeuroFluxGovernor) { + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations[i].level = aug.level; break; } } } break; case AugmentationNames.Neurotrainer1: //Low Level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.1; break; case AugmentationNames.Neurotrainer2: //Medium level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.15; break; case AugmentationNames.Neurotrainer3: //High Level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.2; break; case AugmentationNames.Hypersight: //Medium high level - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.1; break; case AugmentationNames.LuminCloaking1: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.1; break; case AugmentationNames.LuminCloaking2: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.25; break; case AugmentationNames.HemoRecirculator: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.08; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.08; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.08; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.08; break; case AugmentationNames.SmartSonar: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.25; break; case AugmentationNames.PowerRecirculator: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.1; break; //Unique augmentations (for factions) case AugmentationNames.QLink: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.3; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 2; break; case AugmentationNames.TheRedPill: break; case AugmentationNames.SPTN97: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.75; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.75; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.75; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.75; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.75; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.75; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.75; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.75; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.15; break; case AugmentationNames.HiveMind: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_grow_mult *= 3; break; case AugmentationNames.CordiARCReactor: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.35; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.35; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.35; break; case AugmentationNames.SmartJaw: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.5; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.5; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.25; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.5; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.5; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.25; break; case AugmentationNames.Neotra: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.55; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.55; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.55; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.55; break; case AugmentationNames.Xanipher: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult *= 1.15; break; case AugmentationNames.nextSENS: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_mult *= 1.2; break; case AugmentationNames.OmniTekInfoLoad: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.25; break; case AugmentationNames.PhotosyntheticCells: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.4; break; case AugmentationNames.Neurolink: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_chance_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.05; break; case AugmentationNames.TheBlackHand: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_speed_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_money_mult *= 1.1; break; case AugmentationNames.CRTX42AA: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.15; break; case AugmentationNames.Neuregen: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult *= 1.4; break; case AugmentationNames.CashRoot: break; case AugmentationNames.NutriGen: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.2; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.2; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.2; break; case AugmentationNames.INFRARet: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.25; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.25; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.1; break; case AugmentationNames.DermaForce: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.4; break; case AugmentationNames.GrapheneBrachiBlades: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.4; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.4; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.3; break; case AugmentationNames.GrapheneBionicArms: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.85; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.85; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.85; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.85; break; case AugmentationNames.BrachiBlades: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_success_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].crime_money_mult *= 1.15; break; case AugmentationNames.BionicArms: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.3; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.3; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.3; break; case AugmentationNames.SNA: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].work_money_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].work_money_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].company_rep_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult *= 1.15; break; //Bladeburner augmentations case AugmentationNames.EsperEyewear: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.03; break; case AugmentationNames.EMS4Recombination: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.01; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.01; break; case AugmentationNames.OrionShoulder: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.03; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.04; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.04; break; case AugmentationNames.HyperionV1: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.05; break; case AugmentationNames.HyperionV2: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.07; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.07; break; case AugmentationNames.GolemSerum: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.05; break; case AugmentationNames.VangelisVirus: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.1; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.04; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.04; break; case AugmentationNames.VangelisVirus3: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.05; break; case AugmentationNames.INTERLINKED: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.04; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.04; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.04; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.04; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult *= 1.04; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult *= 1.04; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult *= 1.04; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult *= 1.04; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult *= 1.1; break; case AugmentationNames.BladeRunner: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.05; break; case AugmentationNames.BladeArmor: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.03; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.03; break; case AugmentationNames.BladeArmorPowerCells: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.02; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult *= 1.05; break; case AugmentationNames.BladeArmorEnergyShielding: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.06; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_mult *= 1.05; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.06; break; case AugmentationNames.BladeArmorUnibeam: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.08; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.08; break; case AugmentationNames.BladeArmorOmnibeam: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.1; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.1; break; case AugmentationNames.BladeArmorIPU: - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.15; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.02; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult *= 1.15; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult *= 1.02; break; case AugmentationNames.BladesSimulacrum: //No multiplier effect break; @@ -14938,8 +14948,8 @@ function applyAugmentation(aug, reapply=false) { } if (aug.name == AugmentationNames.NeuroFluxGovernor) { - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations[i].name == AugmentationNames.NeuroFluxGovernor) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations[i].name == AugmentationNames.NeuroFluxGovernor) { //Already have this aug, just upgrade the level return; } @@ -14948,7 +14958,7 @@ function applyAugmentation(aug, reapply=false) { if (!reapply) { var ownedAug = new PlayerOwnedAugmentation(aug.name); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.push(ownedAug); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.push(ownedAug); } } @@ -14958,29 +14968,29 @@ function PlayerOwnedAugmentation(name) { } function installAugmentations(cbScript=null) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length == 0) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("You have not purchased any Augmentations to install!"); + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length == 0) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("You have not purchased any Augmentations to install!"); return false; } var augmentationList = ""; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length; ++i) { - var aug = Augmentations[_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i].name]; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length; ++i) { + var aug = Augmentations[_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i].name]; if (aug == null) { console.log("ERROR. Invalid augmentation"); continue; } - applyAugmentation(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i]); + applyAugmentation(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i]); augmentationList += (aug.name + "
"); } - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations = []; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("You slowly drift to sleep as scientists put you under in order " + + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations = []; + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_12__["dialogBoxCreate"])("You slowly drift to sleep as scientists put you under in order " + "to install the following Augmentations:
" + augmentationList + "
You wake up in your home...you feel different..."); - Object(_Prestige_js__WEBPACK_IMPORTED_MODULE_7__["prestigeAugmentation"])(); + Object(_Prestige__WEBPACK_IMPORTED_MODULE_7__["prestigeAugmentation"])(); //Run a script after prestiging if (cbScript && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_15__["isString"])(cbScript)) { - var home = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].getHomeComputer(); + var home = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].getHomeComputer(); for (var i = 0; i < home.scripts.length; ++i) { if (home.scripts[i].filename === cbScript) { var script = home.scripts[i]; @@ -14989,10 +14999,10 @@ function installAugmentations(cbScript=null) { if (ramUsage > ramAvailable) { return; //Not enough RAM } - var runningScriptObj = new _Script_js__WEBPACK_IMPORTED_MODULE_9__["RunningScript"](script, []); //No args + var runningScriptObj = new _Script__WEBPACK_IMPORTED_MODULE_9__["RunningScript"](script, []); //No args runningScriptObj.threads = 1; //Only 1 thread home.runningScripts.push(runningScriptObj); - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_5__["addWorkerScript"])(runningScriptObj, home); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_5__["addWorkerScript"])(runningScriptObj, home); } } } @@ -15008,24 +15018,24 @@ function giveAllAugmentations() { var aug = Augmentations[name]; if (aug == null) {continue;} var ownedAug = new PlayerOwnedAugmentation(name); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.push(ownedAug); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.push(ownedAug); } - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].reapplyAllAugmentations(); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].reapplyAllAugmentations(); } function displayAugmentationsContent() { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["removeChildrenFromElement"])(_engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent); - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("h1", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["removeChildrenFromElement"])(_engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent); + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("h1", { innerText:"Purchased Augmentations", })); //Bladeburner text, once mechanic is unlocked var bladeburnerText = "\n"; - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN === 6 || _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_4__["hasBladeburnerSF"]) { + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN === 6 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_4__["hasBladeburnerSF"]) { bladeburnerText = "Bladeburner Progress\n\n"; } - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("pre", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("pre", { width:"70%", whiteSpace:"pre-wrap", display:"block", innerText:"Below is a list of all Augmentations you have purchased but not yet installed. Click the button below to install them.\n" + "WARNING: Installing your Augmentations resets most of your progress, including:\n\n" + @@ -15043,7 +15053,7 @@ function displayAugmentationsContent() { })); //Install Augmentations button - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { class:"a-link-button", innerText:"Install Augmentations", tooltip:"'I never asked for this'", clickListener:()=>{ @@ -15053,46 +15063,46 @@ function displayAugmentationsContent() { })); //Backup button - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { class:"a-link-button flashing-button", innerText:"Backup Save (Export)", tooltip:"It's always a good idea to backup/export your save!", clickListener:()=>{ - _SaveObject_js__WEBPACK_IMPORTED_MODULE_8__["saveObject"].exportGame(); + _SaveObject__WEBPACK_IMPORTED_MODULE_8__["saveObject"].exportGame(); return false; } })); //Purchased/queued augmentations list - var queuedAugmentationsList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("ul", {class:"augmentations-list"}); + var queuedAugmentationsList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("ul", {class:"augmentations-list"}); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length; ++i) { - var augName = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i].name; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations.length; ++i) { + var augName = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i].name; var aug = Augmentations[augName]; var displayName = augName; if (augName === AugmentationNames.NeuroFluxGovernor) { - displayName += " - Level " + (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i].level); + displayName += " - Level " + (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queuedAugmentations[i].level); } - var accordion = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createAccordionElement"])({hdrText:displayName, panelText:aug.info}); + var accordion = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createAccordionElement"])({hdrText:displayName, panelText:aug.info}); queuedAugmentationsList.appendChild(accordion[0]); } - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(queuedAugmentationsList); + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(queuedAugmentationsList); //Installed augmentations list - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("h1", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("h1", { innerText:"Installed Augmentations", marginTop:"8px", })); - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("p", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("p", { width:"70%", whiteSpace:"pre-wrap", innerText:"List of all Augmentations (including Source Files) that have been " + "installed. You have gained the effects of these Augmentations." })); - var augmentationsList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("ul", {class:"augmentations-list"}); + var augmentationsList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("ul", {class:"augmentations-list"}); //Expand/Collapse All buttons - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { class:"a-link-button", fontSize:"14px", innerText:"Expand All", display:"inline-block", clickListener:()=>{ var allHeaders = augmentationsList.getElementsByClassName("accordion-header"); @@ -15101,7 +15111,7 @@ function displayAugmentationsContent() { } } })); - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { class:"a-link-button", fontSize:"14px", innerText:"Collapse All", display:"inline-block", clickListener:()=>{ var allHeaders = augmentationsList.getElementsByClassName("accordion-header"); @@ -15112,15 +15122,15 @@ function displayAugmentationsContent() { })); //Sort Buttons - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { class:"a-link-button", fontSize:"14px", innerText:"Sort in Order", tooltip:"Sorts the Augmentations alphabetically and Source Files in numerical order (1, 2, 3,...)", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["removeChildrenFromElement"])(augmentationsList); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["removeChildrenFromElement"])(augmentationsList); //Create a copy of Player's Source Files and augs array and sort them - var sourceFiles = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].sourceFiles.slice(); - var augs = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.slice(); + var sourceFiles = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].sourceFiles.slice(); + var augs = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations.slice(); sourceFiles.sort((sf1, sf2)=>{ return sf1.n - sf2.n; }); @@ -15132,20 +15142,20 @@ function displayAugmentationsContent() { } })); - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createElement"])("a", { class:"a-link-button", fontSize:"14px", innerText:"Sort by Acquirement Time", tooltip:"Sorts the Augmentations and Source Files based on when you acquired them (same as default)", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["removeChildrenFromElement"])(augmentationsList); - displaySourceFiles(augmentationsList, _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].sourceFiles); - displayAugmentations(augmentationsList, _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["removeChildrenFromElement"])(augmentationsList); + displaySourceFiles(augmentationsList, _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].sourceFiles); + displayAugmentations(augmentationsList, _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations); } })); //Source Files - Temporary...Will probably put in a separate pane Later - displaySourceFiles(augmentationsList, _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].sourceFiles); - displayAugmentations(augmentationsList, _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations); - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(augmentationsList); + displaySourceFiles(augmentationsList, _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].sourceFiles); + displayAugmentations(augmentationsList, _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].augmentations); + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Display.augmentationsContent.appendChild(augmentationsList); } //Creates the accordion elements to display Augmentations @@ -15160,7 +15170,7 @@ function displayAugmentations(listElement, augs) { if (augName === AugmentationNames.NeuroFluxGovernor) { displayName += " - Level " + (augs[i].level); } - var accordion = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createAccordionElement"])({hdrText:displayName, panelText:aug.info}); + var accordion = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createAccordionElement"])({hdrText:displayName, panelText:aug.info}); listElement.appendChild(accordion[0]); } } @@ -15171,13 +15181,13 @@ function displayAugmentations(listElement, augs) { function displaySourceFiles(listElement, sourceFiles) { for (var i = 0; i < sourceFiles.length; ++i) { var srcFileKey = "SourceFile" + sourceFiles[i].n; - var sourceFileObject = _SourceFile_js__WEBPACK_IMPORTED_MODULE_11__["SourceFiles"][srcFileKey]; + var sourceFileObject = _SourceFile__WEBPACK_IMPORTED_MODULE_11__["SourceFiles"][srcFileKey]; if (sourceFileObject == null) { console.log("ERROR: Invalid source file number: " + sourceFiles[i].n); continue; } const maxLevel = sourceFiles[i].n == 12 ? "∞" : "3"; - var accordion = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_13__["createAccordionElement"])({ + var accordion = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_13__["createAccordionElement"])({ hdrText:sourceFileObject.name + "
" + "Level " + (sourceFiles[i].lvl) + " / "+maxLevel, panelText:sourceFileObject.info }); @@ -15205,7 +15215,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadSpecialServerIps", function() { return loadSpecialServerIps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prestigeSpecialServerIps", function() { return prestigeSpecialServerIps; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initSpecialServerIps", function() { return initSpecialServerIps; }); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* Holds IP of Special Servers */ @@ -15226,14 +15236,14 @@ SpecialServerIpsMap.prototype.addIp = function(name, ip) { } SpecialServerIpsMap.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_0__["Generic_toJSON"])("SpecialServerIpsMap", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__["Generic_toJSON"])("SpecialServerIpsMap", this); } SpecialServerIpsMap.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_0__["Generic_fromJSON"])(SpecialServerIpsMap, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__["Generic_fromJSON"])(SpecialServerIpsMap, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_0__["Reviver"].constructors.SpecialServerIpsMap = SpecialServerIpsMap; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__["Reviver"].constructors.SpecialServerIpsMap = SpecialServerIpsMap; let SpecialServerIps = new SpecialServerIpsMap(); @@ -15246,7 +15256,7 @@ function prestigeSpecialServerIps() { } function loadSpecialServerIps(saveString) { - SpecialServerIps = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_0__["Reviver"]); + SpecialServerIps = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_0__["Reviver"]); } function initSpecialServerIps() { @@ -15269,9 +15279,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "displayCreateProgramContent", function() { return displayCreateProgramContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNumAvailableCreateProgram", function() { return getNumAvailableCreateProgram; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initCreateProgramButtons", function() { return initCreateProgramButtons; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); @@ -15280,7 +15290,7 @@ __webpack_require__.r(__webpack_exports__); // the player has at least the given skill level. function requireLevel(lvl) { return function() { - return _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].hacking_skill >= lvl; + return _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].hacking_skill >= lvl; } } @@ -15300,67 +15310,67 @@ const Programs = { level: 1, tooltip:"This virus is used to gain root access to a machine if enough ports are opened.", req: requireLevel(1), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes, }), BruteSSHProgram: new Program("BruteSSH.exe", { level: 50, tooltip:"This program executes a brute force attack that opens SSH ports", req: requireLevel(50), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes * 2, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes * 2, }), FTPCrackProgram: new Program("FTPCrack.exe", { level: 100, tooltip:"This program cracks open FTP ports", req: requireLevel(100), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerHalfHour, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerHalfHour, }), RelaySMTPProgram: new Program("relaySMTP.exe", { level: 250, tooltip:"This program opens SMTP ports by redirecting data", req: requireLevel(250), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer2Hours, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer2Hours, }), HTTPWormProgram: new Program("HTTPWorm.exe", { level: 500, tooltip:"This virus opens up HTTP ports", req: requireLevel(500), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer4Hours, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer4Hours, }), SQLInjectProgram: new Program("SQLInject.exe", { level: 750, tooltip:"This virus opens SQL ports", req: requireLevel(750), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer8Hours, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer8Hours, }), DeepscanV1: new Program("DeepscanV1.exe", { level: 75, tooltip:"This program allows you to use the scan-analyze command with a depth up to 5", req: requireLevel(75), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerQuarterHour, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerQuarterHour, }), DeepscanV2: new Program("DeepscanV2.exe", { level: 400, tooltip:"This program allows you to use the scan-analyze command with a depth up to 10", req: requireLevel(400), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer2Hours, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPer2Hours, }), ServerProfiler: new Program("ServerProfiler.exe", { level: 75, tooltip:"This program is used to display hacking and Netscript-related information about servers", req: requireLevel(75), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerHalfHour, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerHalfHour, }), AutoLink: new Program("AutoLink.exe", { level: 25, tooltip:"This program allows you to directly connect to other servers through the 'scan-analyze' command", req: requireLevel(25), - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerQuarterHour, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerQuarterHour, }), BitFlume: new Program("b1t_flum3.exe", { level: 5, tooltip:"This program creates a portal to the BitNode Nexus (allows you to restart and switch BitNodes)", - req: function() {return _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].sourceFiles.length > 0 && _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].hacking_skill >= 5}, - time: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes / 5, + req: function() {return _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].sourceFiles.length > 0 && _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].hacking_skill >= 5}, + time: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MillisecondsPerFiveMinutes / 5, }), // special because you can't create it. Flight: new Program("fl1ght.exe"), @@ -15373,7 +15383,7 @@ function displayCreateProgramContent() { for(const key in aLinks) { const p = Programs[key] aLinks[key].style.display = "none"; - if(!_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].hasProgram(p.name) && p.create.req()){ + if(!_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].hasProgram(p.name) && p.create.req()){ aLinks[key].style.display = "inline-block"; } } @@ -15386,7 +15396,7 @@ function getNumAvailableCreateProgram() { if(Programs[key].create === undefined) { // a program we can't create continue } - if(_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].hasProgram(Programs[key].name)) { // can't create it twice + if(_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].hasProgram(Programs[key].name)) { // can't create it twice continue } @@ -15397,8 +15407,8 @@ function getNumAvailableCreateProgram() { count++; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].firstProgramAvailable === false && count > 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].firstProgramAvailable = true; + if (_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].firstProgramAvailable === false && count > 0) { + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].firstProgramAvailable = true; document.getElementById("create-program-tab").style.display = "list-item"; document.getElementById("hacking-menu-header").click(); document.getElementById("hacking-menu-header").click(); @@ -15412,7 +15422,7 @@ function initCreateProgramButtons() { if(Programs[key].create === undefined) { continue } - const elem = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { + const elem = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_2__["createElement"])("a", { class: "a-link-button", id: Programs[key].htmlID(), innerText: Programs[key].name, tooltip: Programs[key].create.tooltip, }); @@ -15423,7 +15433,7 @@ function initCreateProgramButtons() { for(const key in aLinks) { const p = Programs[key] aLinks[key].addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].startCreateProgramWork(p.name, p.create.time, p.create.level); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].startCreateProgramWork(p.name, p.create.time, p.create.level); return false; }); } @@ -15449,19 +15459,19 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addWorkerScript", function() { return addWorkerScript; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateOnlineScriptTimes", function() { return updateOnlineScriptTimes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prestigeWorkerScripts", function() { return prestigeWorkerScripts; }); -/* harmony import */ var _ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI.js */ 41); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _NetscriptEnvironment_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment.js */ 67); -/* harmony import */ var _NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEvaluator.js */ 6); -/* harmony import */ var _NetscriptJSEvaluator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptJSEvaluator.js */ 84); -/* harmony import */ var _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptPort.js */ 44); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/acorn.js */ 35); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_9__); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 41); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptEnvironment */ 67); +/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); +/* harmony import */ var _NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptJSEvaluator */ 84); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptPort */ 44); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/acorn */ 35); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_9__); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); @@ -15481,7 +15491,7 @@ function WorkerScript(runningScriptObj) { this.running = false; this.serverIp = null; this.code = runningScriptObj.scriptRef.code; - this.env = new _NetscriptEnvironment_js__WEBPACK_IMPORTED_MODULE_3__["Environment"](this); + this.env = new _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_3__["Environment"](this); this.env.set("args", runningScriptObj.args.slice()); this.output = ""; this.ramUsage = 0; @@ -15501,7 +15511,7 @@ function WorkerScript(runningScriptObj) { //Returns the server on which the workerScript is running WorkerScript.prototype.getServer = function() { - return _Server_js__WEBPACK_IMPORTED_MODULE_7__["AllServers"][this.serverIp]; + return _Server__WEBPACK_IMPORTED_MODULE_7__["AllServers"][this.serverIp]; } //Returns the Script object for the underlying script @@ -15528,16 +15538,16 @@ WorkerScript.prototype.log = function(txt) { let workerScripts = []; var NetscriptPorts = []; -for (var i = 0; i < _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].NumNetscriptPorts; ++i) { - NetscriptPorts.push(new _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_6__["NetscriptPort"]()); +for (var i = 0; i < _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].NumNetscriptPorts; ++i) { + NetscriptPorts.push(new _NetscriptPort__WEBPACK_IMPORTED_MODULE_6__["NetscriptPort"]()); } function prestigeWorkerScripts() { for (var i = 0; i < workerScripts.length; ++i) { - Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__["deleteActiveScriptsItem"])(workerScripts[i]); + Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__["deleteActiveScriptsItem"])(workerScripts[i]); workerScripts[i].env.stopFlag = true; } - Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__["updateActiveScriptsItems"])(5000); //Force UI to update + Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__["updateActiveScriptsItems"])(5000); //Force UI to update workerScripts.length = 0; } @@ -15571,7 +15581,7 @@ function startJsScript(workerScript) { "Did you forget to await hack(), grow(), or some other " + "promise-returning function? (Currently running: %s tried to run: %s)" if (runningFn) { - workerScript.errorMessage = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["makeRuntimeRejectMsg"])(workerScript, sprintf(msg, runningFn, propName), null) + workerScript.errorMessage = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["makeRuntimeRejectMsg"])(workerScript, sprintf(msg, runningFn, propName), null) throw workerScript; } runningFn = propName; @@ -15594,16 +15604,16 @@ function startJsScript(workerScript) { // Note: the environment that we pass to the JS script only needs to contain the functions visible // to that script, which env.vars does at this point. - return Object(_NetscriptJSEvaluator_js__WEBPACK_IMPORTED_MODULE_5__["executeJSScript"])(workerScript.getServer().scripts, + return Object(_NetscriptJSEvaluator__WEBPACK_IMPORTED_MODULE_5__["executeJSScript"])(workerScript.getServer().scripts, workerScript).then(function (mainReturnValue) { if (mainReturnValue === undefined) return workerScript; return [mainReturnValue, workerScript]; }).catch(e => { if (e instanceof Error) { - workerScript.errorMessage = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["makeRuntimeRejectMsg"])( + workerScript.errorMessage = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["makeRuntimeRejectMsg"])( workerScript, e.message + (e.stack && ("\nstack:\n" + e.stack.toString()) || "")); throw workerScript; - } else if (Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["isScriptErrorMessage"])(e)) { + } else if (Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["isScriptErrorMessage"])(e)) { workerScript.errorMessage = e; throw workerScript; } @@ -15624,15 +15634,15 @@ function runScriptsLoop() { var name = workerScripts[i].name; //Free RAM - _Server_js__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].ramUsed -= workerScripts[i].ramUsage; + _Server__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].ramUsed -= workerScripts[i].ramUsage; //Delete script from Active Scripts - Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__["deleteActiveScriptsItem"])(workerScripts[i]); + Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__["deleteActiveScriptsItem"])(workerScripts[i]); - for (var j = 0; j < _Server_js__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts.length; j++) { - if (_Server_js__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts[j].filename == name && - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["compareArrays"])(_Server_js__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts[j].args, workerScripts[i].args)) { - _Server_js__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts.splice(j, 1); + for (var j = 0; j < _Server__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts.length; j++) { + if (_Server__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts[j].filename == name && + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["compareArrays"])(_Server__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts[j].args, workerScripts[i].args)) { + _Server__WEBPACK_IMPORTED_MODULE_7__["AllServers"][ip].runningScripts.splice(j, 1); break; } } @@ -15641,7 +15651,7 @@ function runScriptsLoop() { workerScripts.splice(i, 1); } } - if (scriptDeleted) {Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__["updateActiveScriptsItems"])();} //Force Update + if (scriptDeleted) {Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__["updateActiveScriptsItems"])();} //Force Update //Run any scripts that haven't been started @@ -15653,16 +15663,16 @@ function runScriptsLoop() { p = startJsScript(workerScripts[i]); } else { try { - var ast = Object(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_9__["parse"])(workerScripts[i].code, {sourceType:"module"}); + var ast = Object(_utils_acorn__WEBPACK_IMPORTED_MODULE_9__["parse"])(workerScripts[i].code, {sourceType:"module"}); //console.log(ast); } catch (e) { console.log("Error parsing script: " + workerScripts[i].name); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Syntax ERROR in " + workerScripts[i].name + ":
" + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Syntax ERROR in " + workerScripts[i].name + ":
" + e); workerScripts[i].env.stopFlag = true; continue; } workerScripts[i].running = true; - p = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["evaluate"])(ast, workerScripts[i]); + p = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["evaluate"])(ast, workerScripts[i]); } //Once the code finishes (either resolved or rejected, doesnt matter), set its @@ -15674,7 +15684,7 @@ function runScriptsLoop() { w.scriptRef.log("Script finished running"); }).catch(function(w) { if (w instanceof Error) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Script runtime unknown error. This is a bug please contact game developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Script runtime unknown error. This is a bug please contact game developer"); console.log("ERROR: Evaluating workerscript returns an Error. THIS SHOULDN'T HAPPEN: " + w.toString()); return; } else if (w.constructor === Array && w.length === 2 && w[0] === "RETURNSTATEMENT") { @@ -15683,7 +15693,7 @@ function runScriptsLoop() { //TODO maybe do something with this in the future return; } else if (w instanceof WorkerScript) { - if (Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["isScriptErrorMessage"])(w.errorMessage)) { + if (Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["isScriptErrorMessage"])(w.errorMessage)) { var errorTextArray = w.errorMessage.split("|"); if (errorTextArray.length != 4) { console.log("ERROR: Something wrong with Error text in evaluator..."); @@ -15694,9 +15704,9 @@ function runScriptsLoop() { var scriptName = errorTextArray[2]; var errorMsg = errorTextArray[3]; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Script runtime error:
Server Ip: " + serverIp + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Script runtime error:
Server Ip: " + serverIp + "
Script name: " + scriptName + - "
Args:" + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["printArray"])(w.args) + "
" + errorMsg); + "
Args:" + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["printArray"])(w.args) + "
" + errorMsg); w.scriptRef.log("Script crashed with runtime error"); } else { w.scriptRef.log("Script killed"); @@ -15704,12 +15714,12 @@ function runScriptsLoop() { w.running = false; w.env.stopFlag = true; - } else if (Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["isScriptErrorMessage"])(w)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Script runtime unknown error. This is a bug please contact game developer"); + } else if (Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["isScriptErrorMessage"])(w)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Script runtime unknown error. This is a bug please contact game developer"); console.log("ERROR: Evaluating workerscript returns only error message rather than WorkerScript object. THIS SHOULDN'T HAPPEN: " + w.toString()); return; } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("An unknown script died for an unknown reason. This is a bug please contact game dev"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("An unknown script died for an unknown reason. This is a bug please contact game dev"); console.log(w); } }); @@ -15725,14 +15735,14 @@ function runScriptsLoop() { function killWorkerScript(runningScriptObj, serverIp) { for (var i = 0; i < workerScripts.length; i++) { if (workerScripts[i].name == runningScriptObj.filename && workerScripts[i].serverIp == serverIp && - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["compareArrays"])(workerScripts[i].args, runningScriptObj.args)) { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["compareArrays"])(workerScripts[i].args, runningScriptObj.args)) { workerScripts[i].env.stopFlag = true; - Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["killNetscriptDelay"])(workerScripts[i]); + Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["killNetscriptDelay"])(workerScripts[i]); //Recursively kill all functions var curr = workerScripts[i]; while (curr.fnWorker) { curr.fnWorker.env.stopFlag = true; - Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["killNetscriptDelay"])(curr.fnWorker); + Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["killNetscriptDelay"])(curr.fnWorker); curr = curr.fnWorker; } return true; @@ -15753,11 +15763,11 @@ function addWorkerScript(runningScriptObj, server) { runningScriptObj.threads = 1; } var ramUsage = runningScriptObj.scriptRef.ramUsage * threads - * Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, threads-1); + * Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, threads-1); var ramAvailable = server.maxRam - server.ramUsed; if (ramUsage > ramAvailable) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Not enough RAM to run script " + runningScriptObj.filename + " with args " + - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_11__["printArray"])(runningScriptObj.args) + ". This likely occurred because you re-loaded " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_10__["dialogBoxCreate"])("Not enough RAM to run script " + runningScriptObj.filename + " with args " + + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_11__["printArray"])(runningScriptObj.args) + ". This likely occurred because you re-loaded " + "the game and the script's RAM usage increased (either because of an update to the game or " + "your changes to the script.)"); return; @@ -15770,7 +15780,7 @@ function addWorkerScript(runningScriptObj, server) { s.ramUsage = ramUsage; //Add the WorkerScript to the Active Scripts list - Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__["addActiveScriptsItem"])(s); + Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__["addActiveScriptsItem"])(s); //Add the WorkerScript workerScripts.push(s); @@ -15779,7 +15789,7 @@ function addWorkerScript(runningScriptObj, server) { //Updates the online running time stat of all running scripts function updateOnlineScriptTimes(numCycles = 1) { - var time = (numCycles * _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"]._idleSpeed) / 1000; //seconds + var time = (numCycles * _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"]._idleSpeed) / 1000; //seconds for (var i = 0; i < workerScripts.length; ++i) { workerScripts[i].scriptRef.onlineRunningTime += time; } @@ -15801,7 +15811,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initSettings", function() { return initSettings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setSettingsLabels", function() { return setSettingsLabels; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadSettings", function() { return loadSettings; }); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine.js */ 5); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine */ 5); /* Settings.js */ @@ -15889,9 +15899,9 @@ function setSettingsLabels() { autosaveInterval.innerHTML = this.value; Settings.AutosaveInterval = Number(this.value); if (Number(this.value) === 0) { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = Infinity; + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = Infinity; } else { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = Number(this.value) * 5; + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = Number(this.value) * 5; } }; @@ -15964,20 +15974,20 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Order", function() { return Order; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OrderTypes", function() { return OrderTypes; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PositionTypes", function() { return PositionTypes; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -16011,14 +16021,14 @@ function Stock(name, symbol, mv, b, otlkMag, initPrice=10000) { } Stock.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Stock", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Stock", this); } Stock.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Stock, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Stock, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Stock = Stock; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Stock = Stock; var OrderTypes = { LimitBuy: "Limit Buy Order", @@ -16033,13 +16043,13 @@ var PositionTypes = { } function placeOrder(stock, shares, price, type, position, workerScript=null) { - var tixApi = (workerScript instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); + var tixApi = (workerScript instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); var order = new Order(stock, shares, price, type, position); if (isNaN(shares) || isNaN(price)) { if (tixApi) { workerScript.scriptRef.log("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("ERROR: Invalid numeric value provided for either 'shares' or 'price' argument"); } return false; } @@ -16063,7 +16073,7 @@ function placeOrder(stock, shares, price, type, position, workerScript=null) { //Returns true if successfully cancels an order, false otherwise function cancelOrder(params, workerScript=null) { - var tixApi = (workerScript instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); + var tixApi = (workerScript instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); if (StockMarket["Orders"] == null) {return false;} if (params.order && params.order instanceof Order) { var order = params.order; @@ -16155,14 +16165,14 @@ function Order(stock, shares, price, type, position) { } Order.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Order", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Order", this); } Order.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Order, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Order, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Order = Order; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Order = Order; let StockMarket = {} //Full name to stock object let StockSymbols = {} //Full name to symbol @@ -16172,40 +16182,40 @@ function loadStockMarket(saveString) { if (saveString === "") { StockMarket = {}; } else { - StockMarket = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"]); + StockMarket = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"]); } } function initStockSymbols() { //Stocks for companies at which you can work - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumECorp] = "ECP"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12MegaCorp] = "MGCP"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12BladeIndustries] = "BLD"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumClarkeIncorporated] = "CLRK"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniTekIncorporated] = "OMTK"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FourSigma] = "FSIG"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingKuaiGongInternational] = "KGI"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumFulcrumTechnologies] = "FLCM"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaStormTechnologies] = "STM"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoDefComm] = "DCOMM"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenHeliosLabs] = "HLS"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoVitaLife] = "VITA"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12IcarusMicrosystems] = "ICRS"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12UniversalEnergy] = "UNV"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumAeroCorp] = "AERO"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniaCybersystems] = "OMN"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingSolarisSpaceSystems] = "SLRS"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoGlobalPharmaceuticals] = "GPH"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaNovaMedical] = "NVMD"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumWatchdogSecurity] = "WDS"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenLexoCorp] = "LXO"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumRhoConstruction] = "RHOC"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12AlphaEnterprises] = "APHE"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenSysCoreSecurities] = "SYSC"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenCompuTek] = "CTK"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumNetLinkTechnologies] = "NTLK"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaOmegaSoftware] = "OMGA"; - StockSymbols[_Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FoodNStuff] = "FNS"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumECorp] = "ECP"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12MegaCorp] = "MGCP"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12BladeIndustries] = "BLD"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumClarkeIncorporated] = "CLRK"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniTekIncorporated] = "OMTK"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FourSigma] = "FSIG"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingKuaiGongInternational] = "KGI"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumFulcrumTechnologies] = "FLCM"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaStormTechnologies] = "STM"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoDefComm] = "DCOMM"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenHeliosLabs] = "HLS"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoVitaLife] = "VITA"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12IcarusMicrosystems] = "ICRS"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12UniversalEnergy] = "UNV"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumAeroCorp] = "AERO"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniaCybersystems] = "OMN"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingSolarisSpaceSystems] = "SLRS"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoGlobalPharmaceuticals] = "GPH"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaNovaMedical] = "NVMD"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumWatchdogSecurity] = "WDS"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenLexoCorp] = "LXO"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumRhoConstruction] = "RHOC"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12AlphaEnterprises] = "APHE"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenSysCoreSecurities] = "SYSC"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenCompuTek] = "CTK"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumNetLinkTechnologies] = "NTLK"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaOmegaSoftware] = "OMGA"; + StockSymbols[_Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FoodNStuff] = "FNS"; //Stocks for other companies StockSymbols["Sigma Cosmetics"] = "SGC"; @@ -16222,136 +16232,136 @@ function initStockMarket() { } } - var ecorp = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumECorp; - var ecorpStk = new Stock(ecorp, StockSymbols[ecorp], 0.45, true, 19, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 25000)); + var ecorp = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumECorp; + var ecorpStk = new Stock(ecorp, StockSymbols[ecorp], 0.45, true, 19, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 25000)); StockMarket[ecorp] = ecorpStk; - var megacorp = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12MegaCorp; - var megacorpStk = new Stock(megacorp, StockSymbols[megacorp], 0.45, true, 19, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(25000, 33000)); + var megacorp = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12MegaCorp; + var megacorpStk = new Stock(megacorp, StockSymbols[megacorp], 0.45, true, 19, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(25000, 33000)); StockMarket[megacorp] = megacorpStk; - var blade = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12BladeIndustries; - var bladeStk = new Stock(blade, StockSymbols[blade], 0.75, true, 13, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(15000, 22000)); + var blade = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12BladeIndustries; + var bladeStk = new Stock(blade, StockSymbols[blade], 0.75, true, 13, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(15000, 22000)); StockMarket[blade] = bladeStk; - var clarke = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumClarkeIncorporated; - var clarkeStk = new Stock(clarke, StockSymbols[clarke], 0.7, true, 12, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(15000, 20000)); + var clarke = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumClarkeIncorporated; + var clarkeStk = new Stock(clarke, StockSymbols[clarke], 0.7, true, 12, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(15000, 20000)); StockMarket[clarke] = clarkeStk; - var omnitek = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniTekIncorporated; - var omnitekStk = new Stock(omnitek, StockSymbols[omnitek], 0.65, true, 12, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(35000, 40000)); + var omnitek = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniTekIncorporated; + var omnitekStk = new Stock(omnitek, StockSymbols[omnitek], 0.65, true, 12, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(35000, 40000)); StockMarket[omnitek] = omnitekStk; - var foursigma = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FourSigma; - var foursigmaStk = new Stock(foursigma, StockSymbols[foursigma], 1.05, true, 17, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(60000, 70000)); + var foursigma = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FourSigma; + var foursigmaStk = new Stock(foursigma, StockSymbols[foursigma], 1.05, true, 17, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(60000, 70000)); StockMarket[foursigma] = foursigmaStk; - var kuaigong = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingKuaiGongInternational; - var kuaigongStk = new Stock(kuaigong, StockSymbols[kuaigong], 0.8, true, 10, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 24000)); + var kuaigong = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingKuaiGongInternational; + var kuaigongStk = new Stock(kuaigong, StockSymbols[kuaigong], 0.8, true, 10, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 24000)); StockMarket[kuaigong] = kuaigongStk; - var fulcrum = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumFulcrumTechnologies; - var fulcrumStk = new Stock(fulcrum, StockSymbols[fulcrum], 1.25, true, 16, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(30000, 35000)); + var fulcrum = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumFulcrumTechnologies; + var fulcrumStk = new Stock(fulcrum, StockSymbols[fulcrum], 1.25, true, 16, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(30000, 35000)); StockMarket[fulcrum] = fulcrumStk; - var storm = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaStormTechnologies; - var stormStk = new Stock(storm, StockSymbols[storm], 0.85, true, 7, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(21000, 24000)); + var storm = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaStormTechnologies; + var stormStk = new Stock(storm, StockSymbols[storm], 0.85, true, 7, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(21000, 24000)); StockMarket[storm] = stormStk; - var defcomm = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoDefComm; - var defcommStk = new Stock(defcomm, StockSymbols[defcomm], 0.65, true, 10, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(10000, 15000)); + var defcomm = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoDefComm; + var defcommStk = new Stock(defcomm, StockSymbols[defcomm], 0.65, true, 10, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(10000, 15000)); StockMarket[defcomm] = defcommStk; - var helios = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenHeliosLabs; - var heliosStk = new Stock(helios, StockSymbols[helios], 0.6, true, 9, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(12000, 16000)); + var helios = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenHeliosLabs; + var heliosStk = new Stock(helios, StockSymbols[helios], 0.6, true, 9, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(12000, 16000)); StockMarket[helios] = heliosStk; - var vitalife = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoVitaLife; - var vitalifeStk = new Stock(vitalife, StockSymbols[vitalife], 0.75, true, 7, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(10000, 12000)); + var vitalife = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoVitaLife; + var vitalifeStk = new Stock(vitalife, StockSymbols[vitalife], 0.75, true, 7, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(10000, 12000)); StockMarket[vitalife] = vitalifeStk; - var icarus = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12IcarusMicrosystems; - var icarusStk = new Stock(icarus, StockSymbols[icarus], 0.65, true, 7.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(16000, 20000)); + var icarus = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12IcarusMicrosystems; + var icarusStk = new Stock(icarus, StockSymbols[icarus], 0.65, true, 7.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(16000, 20000)); StockMarket[icarus] = icarusStk; - var universalenergy = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12UniversalEnergy; - var universalenergyStk = new Stock(universalenergy, StockSymbols[universalenergy], 0.55, true, 10, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 25000)); + var universalenergy = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12UniversalEnergy; + var universalenergyStk = new Stock(universalenergy, StockSymbols[universalenergy], 0.55, true, 10, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 25000)); StockMarket[universalenergy] = universalenergyStk; - var aerocorp = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumAeroCorp; - var aerocorpStk = new Stock(aerocorp, StockSymbols[aerocorp], 0.6, true, 6, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(10000, 15000)); + var aerocorp = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumAeroCorp; + var aerocorpStk = new Stock(aerocorp, StockSymbols[aerocorp], 0.6, true, 6, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(10000, 15000)); StockMarket[aerocorp] = aerocorpStk; - var omnia = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniaCybersystems; - var omniaStk = new Stock(omnia, StockSymbols[omnia], 0.7, true, 4.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(9000, 12000)); + var omnia = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenOmniaCybersystems; + var omniaStk = new Stock(omnia, StockSymbols[omnia], 0.7, true, 4.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(9000, 12000)); StockMarket[omnia] = omniaStk; - var solaris = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingSolarisSpaceSystems; - var solarisStk = new Stock(solaris, StockSymbols[solaris], 0.75, true, 8.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(18000, 24000)); + var solaris = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].ChongqingSolarisSpaceSystems; + var solarisStk = new Stock(solaris, StockSymbols[solaris], 0.75, true, 8.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(18000, 24000)); StockMarket[solaris] = solarisStk; - var globalpharm = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoGlobalPharmaceuticals; - var globalpharmStk = new Stock(globalpharm, StockSymbols[globalpharm], 0.6, true, 10.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(18000, 24000)); + var globalpharm = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].NewTokyoGlobalPharmaceuticals; + var globalpharmStk = new Stock(globalpharm, StockSymbols[globalpharm], 0.6, true, 10.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(18000, 24000)); StockMarket[globalpharm] = globalpharmStk; - var nova = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaNovaMedical; - var novaStk = new Stock(nova, StockSymbols[nova], 0.75, true, 5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(18000, 24000)); + var nova = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaNovaMedical; + var novaStk = new Stock(nova, StockSymbols[nova], 0.75, true, 5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(18000, 24000)); StockMarket[nova] = novaStk; - var watchdog = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumWatchdogSecurity; - var watchdogStk = new Stock(watchdog, StockSymbols[watchdog], 2.5, true, 1.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(5000, 7500)); + var watchdog = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumWatchdogSecurity; + var watchdogStk = new Stock(watchdog, StockSymbols[watchdog], 2.5, true, 1.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(5000, 7500)); StockMarket[watchdog] = watchdogStk; - var lexocorp = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenLexoCorp; - var lexocorpStk = new Stock(lexocorp, StockSymbols[lexocorp], 1.25, true, 6, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(5000, 7500)); + var lexocorp = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenLexoCorp; + var lexocorpStk = new Stock(lexocorp, StockSymbols[lexocorp], 1.25, true, 6, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(5000, 7500)); StockMarket[lexocorp] = lexocorpStk; - var rho = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumRhoConstruction; - var rhoStk = new Stock(rho, StockSymbols[rho], 0.6, true, 1, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(3000, 6000)); + var rho = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumRhoConstruction; + var rhoStk = new Stock(rho, StockSymbols[rho], 0.6, true, 1, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(3000, 6000)); StockMarket[rho] = rhoStk; - var alpha = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12AlphaEnterprises; - var alphaStk = new Stock(alpha, StockSymbols[alpha], 1.9, true, 10, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(5000, 7500)); + var alpha = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12AlphaEnterprises; + var alphaStk = new Stock(alpha, StockSymbols[alpha], 1.9, true, 10, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(5000, 7500)); StockMarket[alpha] = alphaStk; - var syscore = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenSysCoreSecurities; - var syscoreStk = new Stock(syscore, StockSymbols[syscore], 1.6, true, 3, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(4000, 7000)) + var syscore = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenSysCoreSecurities; + var syscoreStk = new Stock(syscore, StockSymbols[syscore], 1.6, true, 3, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(4000, 7000)) StockMarket[syscore] = syscoreStk; - var computek = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenCompuTek; - var computekStk = new Stock(computek, StockSymbols[computek], 0.9, true, 4, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(2000, 5000)); + var computek = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].VolhavenCompuTek; + var computekStk = new Stock(computek, StockSymbols[computek], 0.9, true, 4, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(2000, 5000)); StockMarket[computek] = computekStk; - var netlink = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumNetLinkTechnologies; - var netlinkStk = new Stock(netlink, StockSymbols[netlink], 4.2, true, 1, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(2000, 4000)); + var netlink = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].AevumNetLinkTechnologies; + var netlinkStk = new Stock(netlink, StockSymbols[netlink], 4.2, true, 1, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(2000, 4000)); StockMarket[netlink] = netlinkStk; - var omega = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaOmegaSoftware; - var omegaStk = new Stock(omega, StockSymbols[omega], 1, true, 0.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(3000, 6000)); + var omega = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].IshimaOmegaSoftware; + var omegaStk = new Stock(omega, StockSymbols[omega], 1, true, 0.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(3000, 6000)); StockMarket[omega] = omegaStk; - var fns = _Location_js__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FoodNStuff; - var fnsStk = new Stock(fns, StockSymbols[fns], 0.75, false, 1, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(1000, 4000)); + var fns = _Location__WEBPACK_IMPORTED_MODULE_2__["Locations"].Sector12FoodNStuff; + var fnsStk = new Stock(fns, StockSymbols[fns], 0.75, false, 1, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(1000, 4000)); StockMarket[fns] = fnsStk; var sigmacosm = "Sigma Cosmetics"; - var sigmacosmStk = new Stock(sigmacosm, StockSymbols[sigmacosm], 2.8, true, 0, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(2000, 3000)); + var sigmacosmStk = new Stock(sigmacosm, StockSymbols[sigmacosm], 2.8, true, 0, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(2000, 3000)); StockMarket[sigmacosm] = sigmacosmStk; var joesguns = "Joes Guns"; - var joesgunsStk = new Stock(joesguns, StockSymbols[joesguns], 3.8, true, 1, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(500, 1000)); + var joesgunsStk = new Stock(joesguns, StockSymbols[joesguns], 3.8, true, 1, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(500, 1000)); StockMarket[joesguns] = joesgunsStk; var catalyst = "Catalyst Ventures"; - var catalystStk = new Stock(catalyst, StockSymbols[catalyst], 1.45, true, 13.5, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(500, 1000)); + var catalystStk = new Stock(catalyst, StockSymbols[catalyst], 1.45, true, 13.5, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(500, 1000)); StockMarket[catalyst] = catalystStk; var microdyne = "Microdyne Technologies"; - var microdyneStk = new Stock(microdyne, StockSymbols[microdyne], 0.75, true, 8, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 25000)); + var microdyneStk = new Stock(microdyne, StockSymbols[microdyne], 0.75, true, 8, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(20000, 25000)); StockMarket[microdyne] = microdyneStk; var titanlabs = "Titan Laboratories"; - var titanlabsStk = new Stock(titanlabs, StockSymbols[titanlabs], 0.6, true, 11, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(15000, 20000)); + var titanlabsStk = new Stock(titanlabs, StockSymbols[titanlabs], 0.6, true, 11, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["getRandomInt"])(15000, 20000)); StockMarket[titanlabs] = titanlabsStk; var orders = {}; @@ -16395,28 +16405,28 @@ function stockMarketCycle() { //Returns true if successful, false otherwise function buyStock(stock, shares) { if (stock == null || shares < 0 || isNaN(shares)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to buy stock. This may be a bug, contact developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to buy stock. This may be a bug, contact developer"); return false; } shares = Math.round(shares); if (shares == 0) {return false;} var totalPrice = stock.price * shares; - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].money.lt(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You do not have enough money to purchase this. You need $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2).toString() + "."); + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You do not have enough money to purchase this. You need $" + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2).toString() + "."); return false; } var origTotal = stock.playerShares * stock.playerAvgPx; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission); var newTotal = origTotal + totalPrice; stock.playerShares += shares; stock.playerAvgPx = newTotal / stock.playerShares; updateStockPlayerPosition(stock); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(stock.price, 2) + " per share. You also paid $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + " in commission fees."); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + " in commission fees."); return true; } @@ -16424,20 +16434,20 @@ function buyStock(stock, shares) { function sellStock(stock, shares) { if (shares == 0) {return false;} if (stock == null || shares < 0 || isNaN(shares)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to sell stock. This may be a bug, contact developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to sell stock. This may be a bug, contact developer"); return false; } shares = Math.round(shares); if (shares > stock.playerShares) {shares = stock.playerShares;} if (shares === 0) {return false;} - var gains = stock.price * shares - _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].gainMoney(gains); + var gains = stock.price * shares - _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission; + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].gainMoney(gains); stock.playerShares -= shares; if (stock.playerShares == 0) { stock.playerAvgPx = 0; } updateStockPlayerPosition(stock); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(stock.price, 2) + " per share. After commissions, you gained " + "a total of $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(gains, 2)); return true; @@ -16445,12 +16455,12 @@ function sellStock(stock, shares) { //Returns true if successful and false otherwise function shortStock(stock, shares, workerScript=null) { - var tixApi = (workerScript instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); + var tixApi = (workerScript instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); if (stock == null || isNaN(shares) || shares < 0) { if (tixApi) { workerScript.scriptRef.log("ERROR: shortStock() failed because of invalid arguments."); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to initiate a short position in a stock. This is probably " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to initiate a short position in a stock. This is probably " + "due to an invalid quantity. Otherwise, this may be a bug, so contact developer"); } return false; @@ -16459,21 +16469,21 @@ function shortStock(stock, shares, workerScript=null) { if (shares === 0) {return false;} var totalPrice = stock.price * shares; - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].money.lt(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission)) { + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission)) { if (tixApi) { workerScript.scriptRef.log("ERROR: shortStock() failed because you do not have " + "money to purchase this short position. You need " + - numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission).format('($0.000a)')); + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission).format('($0.000a)')); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You do not have enough money to purchase this short position. You need $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + "."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You do not have enough money to purchase this short position. You need $" + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + "."); } return false; } var origTotal = stock.playerShortShares * stock.playerAvgShortPx; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission); var newTotal = origTotal + totalPrice; stock.playerShortShares += shares; stock.playerAvgShortPx = newTotal / stock.playerShortShares; @@ -16482,24 +16492,24 @@ function shortStock(stock, shares, workerScript=null) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.shortStock == null) { workerScript.scriptRef.log("Bought a short position of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(stock.price).format('($0.000a)') + " per share. Paid " + - numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission).format('($0.000a)') + " in commission fees."); + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission).format('($0.000a)') + " in commission fees."); } } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought a short position of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Bought a short position of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(stock.price, 2) + " per share. You also paid $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + " in commission fees."); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + " in commission fees."); } return true; } //Returns true if successful and false otherwise function sellShort(stock, shares, workerScript=null) { - var tixApi = (workerScript instanceof _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); + var tixApi = (workerScript instanceof _NetscriptWorker__WEBPACK_IMPORTED_MODULE_4__["WorkerScript"]); if (stock == null || isNaN(shares) || shares < 0) { if (tixApi) { workerScript.scriptRef.log("ERROR: sellShort() failed because of invalid arguments."); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to sell a short position in a stock. This is probably " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Failed to sell a short position in a stock. This is probably " + "due to an invalid quantity. Otherwise, this may be a bug, so contact developer"); } return false; @@ -16509,12 +16519,12 @@ function sellShort(stock, shares, workerScript=null) { if (shares === 0) {return false;} var origCost = shares * stock.playerAvgShortPx; - var profit = ((stock.playerAvgShortPx - stock.price) * shares) - _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission; + var profit = ((stock.playerAvgShortPx - stock.price) * shares) - _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission; if (isNaN(profit)) {profit = 0;} - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].gainMoney(origCost + profit); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].gainMoney(origCost + profit); if (tixApi) { workerScript.scriptRef.onlineMoneyMade += profit; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].scriptProdSinceLastAug += profit; + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].scriptProdSinceLastAug += profit; } stock.playerShortShares -= shares; @@ -16529,7 +16539,7 @@ function sellShort(stock, shares, workerScript=null) { "a total of " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(origCost + profit).format('($0.000a)')); } } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold your short position of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Sold your short position of " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(stock.price, 2) + " per share. After commissions, you gained " + "a total of $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(origCost + profit, 2)); } @@ -16566,7 +16576,7 @@ function updateStockPrices() { processOrders(stock, OrderTypes.LimitSell, PositionTypes.Long); processOrders(stock, OrderTypes.StopBuy, PositionTypes.Long); processOrders(stock, OrderTypes.StopSell, PositionTypes.Short); - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) { + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) { updateStockTicker(stock, true); } } else { @@ -16575,7 +16585,7 @@ function updateStockPrices() { processOrders(stock, OrderTypes.LimitSell, PositionTypes.Short); processOrders(stock, OrderTypes.StopBuy, PositionTypes.Short); processOrders(stock, OrderTypes.StopSell, PositionTypes.Long); - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) { + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) { updateStockTicker(stock, false); } } @@ -16665,46 +16675,46 @@ function setStockMarketContentCreated(b) { var stockMarketContentCreated = false; var stockMarketPortfolioMode = false; -var COMM = _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission; +var COMM = _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission; function displayStockMarketContent() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount == null) {_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount = false;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess == null) {_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess = false;} + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount == null) {_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount = false;} + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess == null) {_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess = false;} //Purchase WSE Account button - var wseAccountButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-account"); - wseAccountButton.innerText = "Buy WSE Account - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost, 2).toString(); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount && _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].money.gte(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost)) { + var wseAccountButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-account"); + wseAccountButton.innerText = "Buy WSE Account - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost, 2).toString(); + if (!_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount && _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].money.gte(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost)) { wseAccountButton.setAttribute("class", "a-link-button"); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount){ + } else if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount){ wseAccountButton.innerText = "WSE Account - Purchased"; wseAccountButton.setAttribute("class", "a-link-button-bought"); } else { wseAccountButton.setAttribute("class", "a-link-button-inactive"); } wseAccountButton.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount = true; + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount = true; initStockMarket(); initSymbolToStockMap(); - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].WSEAccountCost); displayStockMarketContent(); return false; }); //Purchase TIX API Access account - var tixApiAccessButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-tix-api"); + var tixApiAccessButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-buy-tix-api"); tixApiAccessButton.innerText = "Buy Trade Information eXchange (TIX) API Access - $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost, 2).toString(); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess && _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].money.gte(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost)) { + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost, 2).toString(); + if (!_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess && _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].money.gte(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost)) { tixApiAccessButton.setAttribute("class", "a-link-button"); - } else if(_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess) { + } else if(_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess) { tixApiAccessButton.innerText = "Trade Information eXchange (TIX) API Access - Purchased" tixApiAccessButton.setAttribute("class", "a-link-button-bought"); } else { tixApiAccessButton.setAttribute("class", "a-link-button-inactive"); } tixApiAccessButton.addEventListener("click", function() { - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess = true; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasTixApiAccess = true; + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].TIXAPICost); displayStockMarketContent(); return false; }); @@ -16712,7 +16722,7 @@ function displayStockMarketContent() { var stockList = document.getElementById("stock-market-list"); if (stockList == null) {return;} - if (!_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount) { + if (!_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount) { stockMarketContentCreated = false; while (stockList.firstChild) { stockList.removeChild(stockList.firstChild); @@ -16721,16 +16731,16 @@ function displayStockMarketContent() { } //Create stock market content if you have an account - if (!stockMarketContentCreated && _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount) { + if (!stockMarketContentCreated && _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount) { console.log("Creating Stock Market UI"); document.getElementById("stock-market-commission").innerHTML = "Commission Fees: Every transaction you make has a $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + " commission fee.

" + + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].StockMarketCommission, 2) + " commission fee.

" + "WARNING: When you reset after installing Augmentations, the Stock Market is reset. " + "This means all your positions are lost, so make sure to sell your stocks before installing " + "Augmentations!"; - var investopediaButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-investopedia"); + var investopediaButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-investopedia"); investopediaButton.addEventListener("click", function() { var txt = "When making a transaction on the stock market, there are two " + "types of positions: Long and Short. A Long position is the typical " + @@ -16771,12 +16781,12 @@ function displayStockMarketContent() { "A Limit Order to sell will execute if the stock's price <= order's price
" + "A Stop Order to buy will execute if the stock's price <= order's price
" + "A Stop Order to sell will execute if the stock's price >= order's price."; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])(txt); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])(txt); return false; }); //Switch to Portfolio Mode Button - var modeBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-mode"); + var modeBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-mode"); if (modeBtn) { modeBtn.innerHTML = "Switch to 'Portfolio' Mode" + "Displays only the stocks for which you have shares or orders"; @@ -16784,8 +16794,8 @@ function displayStockMarketContent() { } //Expand/Collapse tickers buttons - var expandBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-expand-tickers"), - collapseBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-collapse-tickers"), + var expandBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-expand-tickers"), + collapseBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-collapse-tickers"), stockList = document.getElementById("stock-market-list"); if (expandBtn) { expandBtn.addEventListener("click", ()=>{ @@ -16819,7 +16829,7 @@ function displayStockMarketContent() { stockMarketContentCreated = true; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount) { + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].hasWseAccount) { for (var name in StockMarket) { if (StockMarket.hasOwnProperty(name)) { var stock = StockMarket[name]; @@ -16835,7 +16845,7 @@ function switchToPortfolioMode() { stockMarketPortfolioMode = true; var stockList = document.getElementById("stock-market-list"); if (stockList == null) {return;} - var modeBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-mode"); + var modeBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-mode"); if (modeBtn) { modeBtn.innerHTML = "Switch to 'All stocks' Mode" + "Displays all stocks on the WSE"; @@ -16875,7 +16885,7 @@ function switchToDisplayAllMode() { stockMarketPortfolioMode = false; var stockList = document.getElementById("stock-market-list"); if (stockList == null) {return;} - var modeBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-mode"); + var modeBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])("stock-market-mode"); if (modeBtn) { modeBtn.innerHTML = "Switch to 'Portfolio' Mode" + "Displays only the stocks for which you have shares or orders"; @@ -16934,7 +16944,7 @@ function createStockTicker(stock) { var longOpt = document.createElement("option"); longOpt.text = "Long"; longShortSelect.add(longOpt); - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].bitNodeN === 8 || (_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__["hasWallStreetSF"] && _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__["wallStreetSFLvl"] >= 2)) { + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].bitNodeN === 8 || (_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__["hasWallStreetSF"] && _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__["wallStreetSFLvl"] >= 2)) { var shortOpt = document.createElement("option"); shortOpt.text = "Short"; longShortSelect.add(shortOpt); @@ -16945,7 +16955,7 @@ function createStockTicker(stock) { var marketOpt = document.createElement("option"); marketOpt.text = "Market Order"; orderTypeSelect.add(marketOpt); - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].bitNodeN === 8 || (_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__["hasWallStreetSF"] && _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__["wallStreetSFLvl"] >= 3)) { + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].bitNodeN === 8 || (_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__["hasWallStreetSF"] && _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__["wallStreetSFLvl"] >= 3)) { var limitOpt = document.createElement("option"); limitOpt.text = "Limit Order"; orderTypeSelect.add(limitOpt); @@ -16969,24 +16979,24 @@ function createStockTicker(stock) { break; case "Limit Order": case "Stop Order": - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerText = "Place Buy " + ordType; noBtn.innerText = "Cancel Order"; yesBtn.addEventListener("click", ()=>{ - var price = Number(Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetInput"])()), type; + var price = Number(Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetInput"])()), type; if (ordType === "Limit Order") { type = OrderTypes.LimitBuy; } else { type = OrderTypes.StopBuy; } placeOrder(stock, shares, price, type, pos); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxCreate"])("Enter the price for your " + ordType); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxCreate"])("Enter the price for your " + ordType); break; default: console.log("ERROR: Invalid order type"); @@ -17010,24 +17020,24 @@ function createStockTicker(stock) { break; case "Limit Order": case "Stop Order": - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerText = "Place Sell " + ordType; noBtn.innerText = "Cancel Order"; yesBtn.addEventListener("click", ()=>{ - var price = Number(Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetInput"])()), type; + var price = Number(Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetInput"])()), type; if (ordType === "Limit Order") { type = OrderTypes.LimitSell; } else { type = OrderTypes.StopSell; } - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); placeOrder(stock, shares, price, type, pos); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxCreate"])("Enter the price for your " + ordType); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxCreate"])("Enter the price for your " + ordType); break; default: console.log("ERROR: Invalid order type"); @@ -17043,7 +17053,7 @@ function createStockTicker(stock) { var pos = longShortSelect.options[longShortSelect.selectedIndex].text; pos === "Long" ? pos = PositionTypes.Long : pos = PositionTypes.Short; var ordType = orderTypeSelect.options[orderTypeSelect.selectedIndex].text; - var money = _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].money.toNumber(); + var money = _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].money.toNumber(); switch (ordType) { case "Market Order": var shares = Math.floor((money - COMM) / stock.price); @@ -17051,12 +17061,12 @@ function createStockTicker(stock) { break; case "Limit Order": case "Stop Order": - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerText = "Place Buy " + ordType; noBtn.innerText = "Cancel Order"; yesBtn.addEventListener("click", ()=>{ - var price = Number(Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetInput"])()), type; + var price = Number(Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxGetInput"])()), type; if (ordType === "Limit Order") { type = OrderTypes.LimitBuy; } else { @@ -17064,12 +17074,12 @@ function createStockTicker(stock) { } var shares = Math.floor((money-COMM) / price); placeOrder(stock, shares, price, type, pos); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxCreate"])("Enter the price for your " + ordType); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_11__["yesNoTxtInpBoxCreate"])("Enter the price for your " + ordType); break; default: console.log("ERROR: Invalid order type"); @@ -17097,7 +17107,7 @@ function createStockTicker(stock) { break; case "Limit Order": case "Stop Order": - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("ERROR: 'Sell All' only works for Market Orders") + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("ERROR: 'Sell All' only works for Market Orders") break; default: console.log("ERROR: Invalid order type"); @@ -17155,7 +17165,7 @@ function setStockTickerClickHandlers() { //'increase' argument is a boolean indicating whether the price increased or decreased function updateStockTicker(stock, increase) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage !== _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) {return;} + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage !== _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) {return;} if (!(stock instanceof Stock)) { console.log("Invalid stock in updateStockTicker():"); console.log(stock); @@ -17180,7 +17190,7 @@ function updateStockTicker(stock, increase) { } function updateStockPlayerPosition(stock) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage !== _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) {return;} + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage !== _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) {return;} if (!(stock instanceof Stock)) { console.log("Invalid stock in updateStockPlayerPosition():"); console.log(stock); @@ -17192,8 +17202,8 @@ function updateStockPlayerPosition(stock) { if (stock.playerShares === 0 && stock.playerShortShares === 0 && StockMarket["Orders"] && StockMarket["Orders"][stock.symbol] && StockMarket["Orders"][stock.symbol].length === 0) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-hdr"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-panel"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-hdr"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-panel"); return; } else { //If the ticker hasn't been created, create it (handles updating) @@ -17234,7 +17244,7 @@ function updateStockPlayerPosition(stock) { " (Total Cost: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(totalCost).format('$0.000a') + ")" + "
Profit: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_9___default()(gains).format('$0.000a') + " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_10__["formatNumber"])(percentageGains*100, 2) + "%)

"; - if (_Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].bitNodeN === 8 || (_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__["hasWallStreetSF"] && _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_3__["wallStreetSFLvl"] >= 2)) { + if (_Player__WEBPACK_IMPORTED_MODULE_5__["Player"].bitNodeN === 8 || (_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__["hasWallStreetSF"] && _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_3__["wallStreetSFLvl"] >= 2)) { stock.posTxtEl.innerHTML += "

Short Position: " + "Shares in short position will increase " + @@ -17250,7 +17260,7 @@ function updateStockPlayerPosition(stock) { } function updateStockOrderList(stock) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage !== _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) {return;} + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage !== _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.StockMarket) {return;} var tickerId = "stock-market-ticker-" + stock.symbol; var orderList = document.getElementById(tickerId + "-order-list"); if (orderList == null) { @@ -17273,8 +17283,8 @@ function updateStockOrderList(stock) { if (stock.playerShares === 0 && stock.playerShortShares === 0 && StockMarket["Orders"] && StockMarket["Orders"][stock.symbol] && StockMarket["Orders"][stock.symbol].length === 0) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-hdr"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-panel"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-hdr"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["removeElementById"])(tickerId + "-panel"); return; } else { //If the ticker hasn't been created, create it (handles updating) @@ -17333,34 +17343,34 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "post", function() { return post; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Terminal", function() { return Terminal; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEY", function() { return KEY; }); -/* harmony import */ var _Alias_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias.js */ 29); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _DarkWeb_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DarkWeb.js */ 50); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Fconf_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Fconf.js */ 32); +/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 29); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./DarkWeb */ 50); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Fconf */ 32); /* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./HelpText */ 69); /* harmony import */ var _HelpText__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_HelpText__WEBPACK_IMPORTED_MODULE_6__); -/* harmony import */ var _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./InteractiveTutorial.js */ 24); -/* harmony import */ var _Literature_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Literature.js */ 52); -/* harmony import */ var _Message_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Message.js */ 28); -/* harmony import */ var _NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptEvaluator.js */ 6); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./InteractiveTutorial */ 24); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Literature */ 52); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Message */ 28); +/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./NetscriptWorker */ 19); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _RedPill_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./RedPill.js */ 37); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./RedPill */ 37); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./SpecialServerIps */ 17); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./TextFile */ 43); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_LogBox_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/LogBox.js */ 49); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/LogBox */ 49); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); /* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! jszip */ 122); /* harmony import */ var jszip__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(jszip__WEBPACK_IMPORTED_MODULE_24__); /* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! file-saver */ 121); @@ -17419,7 +17429,7 @@ function updateTerminalScroll() { } function postNetburnerText() { - post("Bitburner v" + _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].Version); + post("Bitburner v" + _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].Version); } @@ -17453,7 +17463,7 @@ var KEY = { //Defines key commands in terminal $(document).keydown(function(event) { //Terminal - if (_engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { + if (_engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { var terminalInput = document.getElementById("terminal-input-text-box"); if (terminalInput != null && !event.ctrlKey && !event.shiftKey) {terminalInput.focus();} @@ -17463,8 +17473,8 @@ $(document).keydown(function(event) { if (command.length > 0) { post( "[" + - (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_TIMESTAMPS ? Terminal.getTimestamp() + " " : "") + - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname + + (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_TIMESTAMPS ? Terminal.getTimestamp() + " " : "") + + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname + " ~]> " + command ); @@ -17474,12 +17484,12 @@ $(document).keydown(function(event) { } if (event.keyCode === KEY.C && event.ctrlKey) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"]._actionInProgress) { + if (_engine__WEBPACK_IMPORTED_MODULE_4__["Engine"]._actionInProgress) { //Cancel action post("Cancelling..."); - _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"]._actionInProgress = false; + _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"]._actionInProgress = false; Terminal.finishAction(true); - } else if (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) { + } else if (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) { //Dont prevent default so it still copies Terminal.resetTerminalInput(); //Clear Terminal } @@ -17494,8 +17504,8 @@ $(document).keydown(function(event) { //Ctrl n same as down arrow if (event.keyCode === KEY.UPARROW || - (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS && event.keyCode === KEY.P && event.ctrlKey)) { - if (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) {event.preventDefault();} + (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS && event.keyCode === KEY.P && event.ctrlKey)) { + if (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) {event.preventDefault();} //Cycle through past commands if (terminalInput == null) {return;} var i = Terminal.commandHistoryIndex; @@ -17515,8 +17525,8 @@ $(document).keydown(function(event) { } if (event.keyCode === KEY.DOWNARROW || - (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS && event.keyCode === KEY.M && event.ctrlKey)) { - if (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) {event.preventDefault();} + (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS && event.keyCode === KEY.M && event.ctrlKey)) { + if (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) {event.preventDefault();} //Cycle through past commands if (terminalInput == null) {return;} var i = Terminal.commandHistoryIndex; @@ -17571,7 +17581,7 @@ $(document).keydown(function(event) { } //Extra Bash Emulation Hotkeys, must be enabled through .fconf - if (_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) { + if (_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"].ENABLE_BASH_HOTKEYS) { if (event.keyCode === KEY.A && event.ctrlKey) { event.preventDefault(); Terminal.moveTextCursor("home"); @@ -17621,12 +17631,12 @@ $(document).keydown(function(event) { //Keep terminal in focus let terminalCtrlPressed = false, shiftKeyPressed = false; $(document).ready(function() { - if (_engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { + if (_engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { $('.terminal-input').focus(); } }); $(document).keydown(function(e) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { + if (_engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { if (e.which == 17) { terminalCtrlPressed = true; } else if (e.shiftKey) { @@ -17643,7 +17653,7 @@ $(document).keydown(function(e) { } }) $(document).keyup(function(e) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { + if (_engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].Page.Terminal) { if (e.which == 17) { terminalCtrlPressed = false; } @@ -17730,8 +17740,8 @@ function tabCompletion(command, arg, allPossibilities, index=0) { function determineAllPossibilitiesForTabCompletion(input, index=0) { var allPos = []; - allPos = allPos.concat(Object.keys(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"])); - var currServ = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + allPos = allPos.concat(Object.keys(_Alias__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"])); + var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); input = input.toLowerCase(); //If the command starts with './' and the index == -1, then the user @@ -17744,7 +17754,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { } //Programs are on home computer - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getHomeComputer(); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getHomeComputer(); for(var i = 0; i < homeComputer.programs.length; ++i) { allPos.push("./" + homeComputer.programs[i]); } @@ -17756,23 +17766,23 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { return ["alias", "analyze", "cat", "check", "clear", "cls", "connect", "download", "free", "hack", "help", "home", "hostname", "ifconfig", "kill", "killall", "ls", "lscpu", "mem", "nano", "ps", "rm", "run", "scan", "scan-analyze", - "scp", "sudov", "tail", "theme", "top"].concat(Object.keys(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["Aliases"])).concat(Object.keys(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"])); + "scp", "sudov", "tail", "theme", "top"].concat(Object.keys(_Alias__WEBPACK_IMPORTED_MODULE_0__["Aliases"])).concat(Object.keys(_Alias__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"])); } if (input.startsWith ("buy ")) { let options = []; - for(const i in _DarkWeb_js__WEBPACK_IMPORTED_MODULE_3__["DarkWebItems"]) { - const item = _DarkWeb_js__WEBPACK_IMPORTED_MODULE_3__["DarkWebItems"][i] + for(const i in _DarkWeb__WEBPACK_IMPORTED_MODULE_3__["DarkWebItems"]) { + const item = _DarkWeb__WEBPACK_IMPORTED_MODULE_3__["DarkWebItems"][i] options.push(item.program); } - return options.concat(Object.keys(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"])); + return options.concat(Object.keys(_Alias__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"])); } if (input.startsWith("scp ") && index == 1) { - for (var iphostname in _Server_js__WEBPACK_IMPORTED_MODULE_16__["AllServers"]) { - if (_Server_js__WEBPACK_IMPORTED_MODULE_16__["AllServers"].hasOwnProperty(iphostname)) { - allPos.push(_Server_js__WEBPACK_IMPORTED_MODULE_16__["AllServers"][iphostname].ip); - allPos.push(_Server_js__WEBPACK_IMPORTED_MODULE_16__["AllServers"][iphostname].hostname); + for (var iphostname in _Server__WEBPACK_IMPORTED_MODULE_16__["AllServers"]) { + if (_Server__WEBPACK_IMPORTED_MODULE_16__["AllServers"].hasOwnProperty(iphostname)) { + allPos.push(_Server__WEBPACK_IMPORTED_MODULE_16__["AllServers"][iphostname].ip); + allPos.push(_Server__WEBPACK_IMPORTED_MODULE_16__["AllServers"][iphostname].hostname); } } } @@ -17783,7 +17793,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { allPos.push(currServ.scripts[i].filename); } for (var i = 0; i < currServ.messages.length; ++i) { - if (!(currServ.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"])) { + if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"])) { allPos.push(currServ.messages[i]); } } @@ -17795,7 +17805,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { if (input.startsWith("connect ") || input.startsWith("telnet ")) { //All network connections for (var i = 0; i < currServ.serversOnNetwork.length; ++i) { - var serv = _Server_js__WEBPACK_IMPORTED_MODULE_16__["AllServers"][currServ.serversOnNetwork[i]]; + var serv = _Server__WEBPACK_IMPORTED_MODULE_16__["AllServers"][currServ.serversOnNetwork[i]]; if (serv == null) {continue;} allPos.push(serv.ip); //IP allPos.push(serv.hostname); //Hostname @@ -17832,7 +17842,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { allPos.push(currServ.programs[i]); } for (var i = 0; i < currServ.messages.length; ++i) { - if (!(currServ.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"]) && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["isString"])(currServ.messages[i]) && + if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"]) && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["isString"])(currServ.messages[i]) && currServ.messages[i].endsWith(".lit")) { allPos.push(currServ.messages[i]); } @@ -17850,7 +17860,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { } //Programs are on home computer - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getHomeComputer(); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getHomeComputer(); for(var i = 0; i < homeComputer.programs.length; ++i) { allPos.push(homeComputer.programs[i]); } @@ -17859,7 +17869,7 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) { if (input.startsWith("cat ")) { for (var i = 0; i < currServ.messages.length; ++i) { - if (currServ.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"]) { + if (currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"]) { allPos.push(currServ.messages[i].filename); } else { allPos.push(currServ.messages[i]); @@ -17892,7 +17902,7 @@ let Terminal = { resetTerminalInput: function() { document.getElementById("terminal-input-td").innerHTML = - "
[" + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname + " ~]" + "$
" + + "
[" + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname + " ~]" + "$
" + ''; var hdr = document.getElementById("terminal-input-header"); hdr.style.display = "inline"; @@ -18007,40 +18017,40 @@ let Terminal = { //Complete the hack/analyze command finishHack: function(cancelled = false) { if (cancelled == false) { - var server = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var server = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); //Calculate whether hack was successful - var hackChance = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateHackingChance(); + var hackChance = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateHackingChance(); var rand = Math.random(); console.log("Hack success chance: " + hackChance + ", rand: " + rand); - var expGainedOnSuccess = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateExpGain(); + var expGainedOnSuccess = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateExpGain(); var expGainedOnFailure = (expGainedOnSuccess / 4); if (rand < hackChance) { //Success! - if (_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_18__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_18__["SpecialServerNames"].WorldDaemon] && - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_18__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_18__["SpecialServerNames"].WorldDaemon] == server.ip) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN == null) { - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN = 1; + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__["SpecialServerNames"].WorldDaemon] && + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__["SpecialServerNames"].WorldDaemon] == server.ip) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN == null) { + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN = 1; } - Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_14__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN); + Object(_RedPill__WEBPACK_IMPORTED_MODULE_14__["hackWorldDaemon"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN); return; } server.manuallyHacked = true; - var moneyGained = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].calculatePercentMoneyHacked(); + var moneyGained = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].calculatePercentMoneyHacked(); moneyGained = Math.floor(server.moneyAvailable * moneyGained); if (moneyGained <= 0) {moneyGained = 0;} //Safety check server.moneyAvailable -= moneyGained; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].gainMoney(moneyGained); - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].gainHackingExp(expGainedOnSuccess) - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].gainIntelligenceExp(expGainedOnSuccess / _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].IntelligenceTerminalHackBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].gainMoney(moneyGained); + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].gainHackingExp(expGainedOnSuccess) + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].gainIntelligenceExp(expGainedOnSuccess / _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].IntelligenceTerminalHackBaseExpGain); - server.fortify(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerFortifyAmount); + server.fortify(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].ServerFortifyAmount); post("Hack successful! Gained $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(moneyGained, 2) + " and " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(expGainedOnSuccess, 4) + " hacking EXP"); } else { //Failure //Player only gains 25% exp for failure? TODO Can change this later to balance - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].gainHackingExp(expGainedOnFailure) + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].gainHackingExp(expGainedOnFailure) post("Failed to hack " + server.hostname + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(expGainedOnFailure, 4) + " hacking EXP"); } } @@ -18056,43 +18066,43 @@ let Terminal = { finishAnalyze: function(cancelled = false) { if (cancelled == false) { - post(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname + ": "); - post("Organization name: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().organizationName); + post(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname + ": "); + post("Organization name: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().organizationName); var rootAccess = ""; - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hasAdminRights) {rootAccess = "YES";} + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hasAdminRights) {rootAccess = "YES";} else {rootAccess = "NO";} post("Root Access: " + rootAccess); - post("Required hacking skill: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().requiredHackingSkill); - post("Estimated server security level: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hackDifficulty, 5), 3)); - post("Estimated chance to hack: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateHackingChance() * 100, 5), 2) + "%"); - post("Estimated time to hack: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateHackingTime(), 5), 3) + " seconds"); - post("Estimated total money available on server: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().moneyAvailable, 5), 2)); - post("Required number of open ports for NUKE: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().numOpenPortsRequired); - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().sshPortOpen) { + post("Required hacking skill: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().requiredHackingSkill); + post("Estimated server security level: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hackDifficulty, 5), 3)); + post("Estimated chance to hack: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateHackingChance() * 100, 5), 2) + "%"); + post("Estimated time to hack: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].calculateHackingTime(), 5), 3) + " seconds"); + post("Estimated total money available on server: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["addOffset"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().moneyAvailable, 5), 2)); + post("Required number of open ports for NUKE: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().numOpenPortsRequired); + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().sshPortOpen) { post("SSH port: Open") } else { post("SSH port: Closed") } - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ftpPortOpen) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ftpPortOpen) { post("FTP port: Open") } else { post("FTP port: Closed") } - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().smtpPortOpen) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().smtpPortOpen) { post("SMTP port: Open") } else { post("SMTP port: Closed") } - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().httpPortOpen) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().httpPortOpen) { post("HTTP port: Open") } else { post("HTTP port: Closed") } - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().sqlPortOpen) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().sqlPortOpen) { post("SQL port: Open") } else { post("SQL port: Closed") @@ -18122,7 +18132,7 @@ let Terminal = { Terminal.commandHistoryIndex = Terminal.commandHistory.length; //Process any aliases - command = Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["substituteAliases"])(command); + command = Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["substituteAliases"])(command); //Allow usage of ./ if (command.startsWith("./")) { @@ -18138,56 +18148,56 @@ let Terminal = { if (commandArray.length == 0) {return;} /****************** Interactive Tutorial Terminal Commands ******************/ - if (_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialIsRunning"]) { - var foodnstuffServ = Object(_Server_js__WEBPACK_IMPORTED_MODULE_16__["GetServerByHostname"])("foodnstuff"); + if (_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialIsRunning"]) { + var foodnstuffServ = Object(_Server__WEBPACK_IMPORTED_MODULE_16__["GetServerByHostname"])("foodnstuff"); if (foodnstuffServ == null) {throw new Error("Could not get foodnstuff server"); return;} - switch(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["currITutorialStep"]) { - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalHelp: + switch(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["currITutorialStep"]) { + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalHelp: if (commandArray[0] == "help") { post(_HelpText__WEBPACK_IMPORTED_MODULE_6__["TerminalHelpText"]); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalLs: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalLs: if (commandArray[0] == "ls") { Terminal.executeListCommand(commandArray); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalScan: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalScan: if (commandArray[0] == "scan") { Terminal.executeScanCommand(commandArray); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalScanAnalyze1: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalScanAnalyze1: if (commandArray.length == 1 && commandArray[0] == "scan-analyze") { Terminal.executeScanAnalyzeCommand(1); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalScanAnalyze2: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalScanAnalyze2: if (commandArray.length == 2 && commandArray[0] == "scan-analyze" && commandArray[1] == "2") { Terminal.executeScanAnalyzeCommand(2); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalConnect: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalConnect: if (commandArray.length == 2) { if ((commandArray[0] == "connect") && (commandArray[1] == "foodnstuff" || commandArray[1] == foodnstuffServ.ip)) { - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = false; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].currentServer = foodnstuffServ.ip; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = true; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = false; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].currentServer = foodnstuffServ.ip; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = true; post("Connected to foodnstuff"); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Wrong command! Try again!"); return;} } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalAnalyze: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalAnalyze: if (commandArray[0] == "analyze") { if (commandArray.length != 1) { post("Incorrect usage of analyze command. Usage: analyze"); return; @@ -18197,69 +18207,69 @@ let Terminal = { post("Analyzing system..."); hackProgressPost("Time left:"); hackProgressBarPost("["); - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].analyze(); + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].analyze(); //Disable terminal //Terminal.resetTerminalInput(); document.getElementById("terminal-input-td").innerHTML = ''; $('input[class=terminal-input]').prop('disabled', true); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else { post("Bad command. Please follow the tutorial"); } break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalNuke: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalNuke: if (commandArray.length == 2 && commandArray[0] == "run" && commandArray[1] == "NUKE.exe") { foodnstuffServ.hasAdminRights = true; post("NUKE successful! Gained root access to foodnstuff"); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalManualHack: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalManualHack: if (commandArray.length == 1 && commandArray[0] == "hack") { Terminal.hackFlag = true; hackProgressPost("Time left:"); hackProgressBarPost("["); - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hack(); + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hack(); //Disable terminal //Terminal.resetTerminalInput(); document.getElementById("terminal-input-td").innerHTML = ''; $('input[class=terminal-input]').prop('disabled', true); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalCreateScript: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalCreateScript: if (commandArray.length == 2 && commandArray[0] == "nano" && commandArray[1] == "foodnstuff.script") { - _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent("foodnstuff.script", ""); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent("foodnstuff.script", ""); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalFree: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalFree: if (commandArray.length == 1 && commandArray[0] == "free") { Terminal.executeFreeCommand(commandArray); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalRunScript: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].TerminalRunScript: if (commandArray.length == 2 && commandArray[0] == "run" && commandArray[1] == "foodnstuff.script") { Terminal.runScript("foodnstuff.script"); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; - case _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].ActiveScriptsToTerminal: + case _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialSteps"].ActiveScriptsToTerminal: if (commandArray.length == 2 && commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") { //Check that the script exists on this machine - var runningScript = Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])("foodnstuff.script", [], _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer()); + var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])("foodnstuff.script", [], _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer()); if (runningScript == null) { post("Error: No such script exists"); return; } - Object(_utils_LogBox_js__WEBPACK_IMPORTED_MODULE_22__["logBoxCreate"])(runningScript); - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); + Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_22__["logBoxCreate"])(runningScript); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_7__["iTutorialNextStep"])(); } else {post("Bad command. Please follow the tutorial");} break; default: @@ -18272,21 +18282,21 @@ let Terminal = { /****************** END INTERACTIVE TUTORIAL ******************/ /* Command parser */ - var s = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var s = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); switch (commandArray[0].toLowerCase()) { case "alias": if (commandArray.length == 1) { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["printAliases"])(); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["printAliases"])(); return; } if (commandArray.length == 2) { if (commandArray[1].startsWith("-g ")) { var alias = commandArray[1].substring(3); - if (Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["parseAliasDeclaration"])(alias, true)) { + if (Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["parseAliasDeclaration"])(alias, true)) { return; } } else { - if (Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["parseAliasDeclaration"])(commandArray[1])) { + if (Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["parseAliasDeclaration"])(commandArray[1])) { return; } } @@ -18302,7 +18312,7 @@ let Terminal = { post("Analyzing system..."); hackProgressPost("Time left:"); hackProgressBarPost("["); - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].analyze(); + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].analyze(); //Disable terminal //Terminal.resetTerminalInput(); @@ -18310,8 +18320,8 @@ let Terminal = { $('input[class=terminal-input]').prop('disabled', true); break; case "buy": - if (_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_18__["SpecialServerIps"].hasOwnProperty("Darkweb Server")) { - Object(_DarkWeb_js__WEBPACK_IMPORTED_MODULE_3__["executeDarkwebTerminalCommand"])(commandArray); + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_18__["SpecialServerIps"].hasOwnProperty("Darkweb Server")) { + Object(_DarkWeb__WEBPACK_IMPORTED_MODULE_3__["executeDarkwebTerminalCommand"])(commandArray); } else { post("You need to be able to connect to the Dark Web to use the buy command. (Maybe there's a TOR router you can buy somewhere)"); } @@ -18326,10 +18336,10 @@ let Terminal = { } for (var i = 0; i < s.messages.length; ++i) { if (filename.endsWith(".lit") && s.messages[i] == filename) { - Object(_Literature_js__WEBPACK_IMPORTED_MODULE_8__["showLiterature"])(s.messages[i]); + Object(_Literature__WEBPACK_IMPORTED_MODULE_8__["showLiterature"])(s.messages[i]); return; } else if (filename.endsWith(".msg") && s.messages[i].filename == filename) { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_9__["showMessage"])(s.messages[i]); + Object(_Message__WEBPACK_IMPORTED_MODULE_9__["showMessage"])(s.messages[i]); return; } } @@ -18353,12 +18363,12 @@ let Terminal = { } //Can only tail script files - if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(scriptName) == false) { + if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(scriptName) == false) { post("Error: tail can only be called on .script files (filename must end with .script)"); return; } //Check that the script exists on this machine - var runningScript = Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, s); + var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, s); if (runningScript == null) { post("Error: No such script exists"); return; @@ -18383,8 +18393,8 @@ let Terminal = { var ip = commandArray[1]; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().serversOnNetwork.length; i++) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).ip == ip || _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).hostname == ip) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().serversOnNetwork.length; i++) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).ip == ip || _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).hostname == ip) { Terminal.connectToServer(ip); return; } @@ -18428,7 +18438,7 @@ let Terminal = { file_saver__WEBPACK_IMPORTED_MODULE_25__["saveAs"](content, filename); }); return; - } else if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(fn)) { + } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(fn)) { //Download a single script for (var i = 0; i < s.scripts.length; ++i) { if (s.scripts[i].filename === fn) { @@ -18453,17 +18463,17 @@ let Terminal = { } //Hack the current PC (usually for money) //You can't hack your home pc or servers you purchased - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().purchasedByPlayer) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().purchasedByPlayer) { post("Cannot hack your own machines! You are currently connected to your home PC or one of your purchased servers"); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hasAdminRights == false ) { + } else if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hasAdminRights == false ) { post("You do not have admin rights for this machine! Cannot hack"); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().requiredHackingSkill > _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hacking_skill) { + } else if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hacking_skill) { post("Your hacking skill is not high enough to attempt hacking this machine. Try analyzing the machine to determine the required hacking skill"); } else { Terminal.hackFlag = true; hackProgressPost("Time left:"); hackProgressBarPost("["); - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hack(); + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hack(); //Disable terminal //Terminal.resetTerminalInput(); @@ -18491,9 +18501,9 @@ let Terminal = { if (commandArray.length != 1) { post("Incorrect usage of home command. Usage: home"); return; } - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = false; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].currentServer = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getHomeComputer().ip; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = true; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = false; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].currentServer = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getHomeComputer().ip; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = true; post("Connected to home"); Terminal.resetTerminalInput(); break; @@ -18502,14 +18512,14 @@ let Terminal = { post("Incorrect usage of hostname command. Usage: hostname"); return; } //Print the hostname of current system - post(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname); + post(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname); break; case "ifconfig": if (commandArray.length != 1) { post("Incorrect usage of ifconfig command. Usage: ifconfig"); return; } //Print the IP address of the current system - post(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ip); + post(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ip); break; case "kill": if (commandArray.length < 2) { @@ -18521,17 +18531,17 @@ let Terminal = { for (var i = 1; i < results.length; ++i) { args.push(results[i]); } - var runningScript = Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, s); + var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, s); if (runningScript == null) { post("No such script is running. Nothing to kill"); return; } - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_11__["killWorkerScript"])(runningScript, s.ip); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_11__["killWorkerScript"])(runningScript, s.ip); post("Killing " + scriptName + ". May take up to a few minutes for the scripts to die..."); break; case "killall": for (var i = s.runningScripts.length-1; i >= 0; --i) { - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_11__["killWorkerScript"])(s.runningScripts[i], s.ip); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_11__["killWorkerScript"])(s.runningScripts[i], s.ip); } post("Killing all running scripts. May take up to a few minutes for the scripts to die..."); break; @@ -18539,7 +18549,7 @@ let Terminal = { Terminal.executeListCommand(commandArray); break; case "lscpu": - post(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().cpuCores + " Core(s)"); + post(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().cpuCores + " Core(s)"); break; case "mem": if (commandArray.length != 2) { @@ -18561,11 +18571,11 @@ let Terminal = { scriptName = results[0]; } - var currServ = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); for (var i = 0; i < currServ.scripts.length; ++i) { if (scriptName == currServ.scripts[i].filename) { var scriptBaseRamUsage = currServ.scripts[i].ramUsage; - var ramUsage = scriptBaseRamUsage * numThreads * Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, numThreads-1); + var ramUsage = scriptBaseRamUsage * numThreads * Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, numThreads-1); post("This script requires " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(ramUsage, 2) + "GB of RAM to run for " + numThreads + " thread(s)"); return; @@ -18580,27 +18590,27 @@ let Terminal = { var filename = commandArray[1]; if (filename === ".fconf") { - var text = Object(_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["createFconf"])(); - _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename, text); + var text = Object(_Fconf__WEBPACK_IMPORTED_MODULE_5__["createFconf"])(); + _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename, text); return; - } else if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(filename)) { + } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(filename)) { for (var i = 0; i < s.scripts.length; i++) { if (filename == s.scripts[i].filename) { - _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename, s.scripts[i].code); + _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename, s.scripts[i].code); return; } } } else if (filename.endsWith(".txt")) { for (var i = 0; i < s.textFiles.length; ++i) { if (filename === s.textFiles[i].fn) { - _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename, s.textFiles[i].text); + _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename, s.textFiles[i].text); return; } } } else { post("Error: Invalid file. Only scripts (.script), text files (.txt), or .fconf can be edited with nano"); return; } - _engine_js__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename); + _engine__WEBPACK_IMPORTED_MODULE_4__["Engine"].loadScriptEditorContent(filename); break; case "ps": if (commandArray.length != 1) { @@ -18630,7 +18640,7 @@ let Terminal = { return; } } - } else if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(delTarget)) { + } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(delTarget)) { for (var i = 0; i < s.scripts.length; ++i) { if (s.scripts[i].filename == delTarget) { //Check that the script isnt currently running @@ -18647,7 +18657,7 @@ let Terminal = { } else if (delTarget.endsWith(".lit")) { for (var i = 0; i < s.messages.length; ++i) { var f = s.messages[i]; - if (!(f instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"]) && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["isString"])(f) && f === delTarget) { + if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"]) && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["isString"])(f) && f === delTarget) { s.messages.splice(i, 1); return; } @@ -18706,11 +18716,11 @@ let Terminal = { post("Incorrect usage of scan-analyze command. depth argument must be positive numeric"); return; } - if (depth > 3 && !_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV1.name) && - !_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV2.name)) { + if (depth > 3 && !_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV1.name) && + !_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV2.name)) { post("You cannot scan-analyze with that high of a depth. Maximum depth is 3"); return; - } else if (depth > 5 && !_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV2.name)) { + } else if (depth > 5 && !_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV2.name)) { post("You cannot scan-analyze with that high of a depth. Maximum depth is 5"); return; } else if (depth > 10) { @@ -18733,24 +18743,24 @@ let Terminal = { return; } var scriptname = args[0]; - if (!scriptname.endsWith(".lit") && !Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(scriptname) && + if (!scriptname.endsWith(".lit") && !Object(_Script__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(scriptname) && !scriptname.endsWith(".txt")){ post("Error: scp only works for .script, .txt, and .lit files"); return; } - var destServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_16__["getServer"])(args[1]); + var destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_16__["getServer"])(args[1]); if (destServer == null) { post("Invalid destination. " + args[1] + " not found"); return; } var ip = destServer.ip; - var currServ = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); //Scp for lit files if (scriptname.endsWith(".lit")) { var found = false; for (var i = 0; i < currServ.messages.length; ++i) { - if (!(currServ.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"]) && currServ.messages[i] == scriptname) { + if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"]) && currServ.messages[i] == scriptname) { found = true; break; } @@ -18821,7 +18831,7 @@ let Terminal = { } } - var newScript = new _Script_js__WEBPACK_IMPORTED_MODULE_15__["Script"](); + var newScript = new _Script__WEBPACK_IMPORTED_MODULE_15__["Script"](); newScript.filename = scriptname; newScript.code = sourceScript.code; newScript.ramUsage = sourceScript.ramUsage; @@ -18834,7 +18844,7 @@ let Terminal = { post("Incorrect number of arguments. Usage: sudov"); return; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hasAdminRights) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hasAdminRights) { post("You have ROOT access to this machine"); } else { post("You do NOT have root access to this machine"); @@ -18852,17 +18862,17 @@ let Terminal = { } //Can only tail script files - if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(scriptName) == false) { + if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__["isScriptFilename"])(scriptName) == false) { post("Error: tail can only be called on .script files (filename must end with .script)"); return; } //Check that the script exists on this machine - var runningScript = Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, s); + var runningScript = Object(_Script__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, s); if (runningScript == null) { post("Error: No such script exists"); return; } - Object(_utils_LogBox_js__WEBPACK_IMPORTED_MODULE_22__["logBoxCreate"])(runningScript); + Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_22__["logBoxCreate"])(runningScript); } break; case "theme": @@ -18888,9 +18898,9 @@ let Terminal = { } else { return post("Theme not found"); } - _Settings_js__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeHighlightColor = document.body.style.getPropertyValue("--my-highlight-color"); - _Settings_js__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeFontColor = document.body.style.getPropertyValue("--my-font-color"); - _Settings_js__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeBackgroundColor = document.body.style.getPropertyValue("--my-background-color"); + _Settings__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeHighlightColor = document.body.style.getPropertyValue("--my-highlight-color"); + _Settings__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeFontColor = document.body.style.getPropertyValue("--my-font-color"); + _Settings__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeBackgroundColor = document.body.style.getPropertyValue("--my-background-color"); } else { var inputBackgroundHex = args[0]; var inputTextHex = args[1]; @@ -18901,9 +18911,9 @@ let Terminal = { document.body.style.setProperty('--my-highlight-color',inputHighlightHex); document.body.style.setProperty('--my-font-color',inputTextHex); document.body.style.setProperty('--my-background-color',inputBackgroundHex); - _Settings_js__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeHighlightColor = document.body.style.getPropertyValue("--my-highlight-color"); - _Settings_js__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeFontColor = document.body.style.getPropertyValue("--my-font-color"); - _Settings_js__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeBackgroundColor = document.body.style.getPropertyValue("--my-background-color"); + _Settings__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeHighlightColor = document.body.style.getPropertyValue("--my-highlight-color"); + _Settings__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeFontColor = document.body.style.getPropertyValue("--my-font-color"); + _Settings__WEBPACK_IMPORTED_MODULE_17__["Settings"].ThemeBackgroundColor = document.body.style.getPropertyValue("--my-background-color"); } else { return post("Invalid Hex Input for theme"); } @@ -18916,7 +18926,7 @@ let Terminal = { post("Script Threads RAM Usage"); - var currRunningScripts = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().runningScripts; + var currRunningScripts = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().runningScripts; //Iterate through scripts on current server for(var i = 0; i < currRunningScripts.length; i++) { var script = currRunningScripts[i]; @@ -18945,7 +18955,7 @@ let Terminal = { post('Incorrect usage of unalias name. Usage: unalias "[alias]"'); } else { var alias = commandArray[1].slice(1, -1); - if (Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["removeAlias"])(alias)) { + if (Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["removeAlias"])(alias)) { post("Removed alias " + alias); } else { post("No such alias exists"); @@ -18959,17 +18969,17 @@ let Terminal = { connectToServer: function(ip) { console.log("Connect to server called"); - var serv = Object(_Server_js__WEBPACK_IMPORTED_MODULE_16__["getServer"])(ip); + var serv = Object(_Server__WEBPACK_IMPORTED_MODULE_16__["getServer"])(ip); if (serv == null) { post("Invalid server. Connection failed."); return; } - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = false; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].currentServer = serv.ip; - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = true; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = false; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].currentServer = serv.ip; + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().isConnectedTo = true; post("Connected to " + serv.hostname); - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname == "darkweb") { - Object(_DarkWeb_js__WEBPACK_IMPORTED_MODULE_3__["checkIfConnectedToDarkweb"])(); //Posts a 'help' message if connecting to dark web + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname == "darkweb") { + Object(_DarkWeb__WEBPACK_IMPORTED_MODULE_3__["checkIfConnectedToDarkweb"])(); //Posts a 'help' message if connecting to dark web } Terminal.resetTerminalInput(); }, @@ -18996,7 +19006,7 @@ let Terminal = { var allFiles = []; //Get all of the programs and scripts on the machine into one temporary array - var s = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var s = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); for (var i = 0; i < s.programs.length; i++) { if (filter) { if (s.programs[i].includes(filter)) { @@ -19018,7 +19028,7 @@ let Terminal = { } for (var i = 0; i < s.messages.length; i++) { if (filter) { - if (s.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"]) { + if (s.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"]) { if (s.messages[i].filename.includes(filter)) { allFiles.push(s.messages[i].filename); } @@ -19026,7 +19036,7 @@ let Terminal = { allFiles.push(s.messages[i]); } } else { - if (s.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_9__["Message"]) { + if (s.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_9__["Message"]) { allFiles.push(s.messages[i].filename); } else { allFiles.push(s.messages[i]); @@ -19057,9 +19067,9 @@ let Terminal = { } //Displays available network connections using TCP post("Hostname IP Root Access"); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().serversOnNetwork.length; i++) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().serversOnNetwork.length; i++) { //Add hostname - var entry = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i); + var entry = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i); if (entry == null) {continue;} entry = entry.hostname; @@ -19067,16 +19077,16 @@ let Terminal = { var numSpaces = 21 - entry.length; var spaces = Array(numSpaces+1).join(" "); entry += spaces; - entry += _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).ip; + entry += _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).ip; //Calculate padding and add root access info var hasRoot; - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).hasAdminRights) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).hasAdminRights) { hasRoot = 'Y'; } else { hasRoot = 'N'; } - numSpaces = 21 - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).ip.length; + numSpaces = 21 - _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().getServerOnNetwork(i).ip.length; spaces = Array(numSpaces+1).join(" "); entry += spaces; entry += hasRoot; @@ -19089,11 +19099,11 @@ let Terminal = { //TODO Using array as stack for now, can make more efficient post("~~~~~~~~~~ Beginning scan-analyze ~~~~~~~~~~"); post(" "); - var visited = new _Script_js__WEBPACK_IMPORTED_MODULE_15__["AllServersMap"](); + var visited = new _Script__WEBPACK_IMPORTED_MODULE_15__["AllServersMap"](); var stack = []; var depthQueue = [0]; - var currServ = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var currServ = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); stack.push(currServ); while(stack.length != 0) { var s = stack.pop(); @@ -19111,7 +19121,7 @@ let Terminal = { } if (d == 0) {continue;} //Don't print current server var titleDashes = Array((d-1) * 4 + 1).join("-"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].AutoLink.name)) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].AutoLink.name)) { post("" + titleDashes + "> " + s.hostname + "", false); } else { post("" + titleDashes + ">" + s.hostname + ""); @@ -19144,9 +19154,9 @@ let Terminal = { if (commandArray.length != 1) { post("Incorrect usage of free command. Usage: free"); return; } - post("Total: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().maxRam, 2) + " GB"); - post("Used: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ramUsed, 2) + " GB"); - post("Available: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().maxRam - _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ramUsed, 2) + " GB"); + post("Total: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().maxRam, 2) + " GB"); + post("Used: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ramUsed, 2) + " GB"); + post("Available: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().maxRam - _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().ramUsed, 2) + " GB"); }, //First called when the "run [program]" command is called. Checks to see if you @@ -19161,7 +19171,7 @@ let Terminal = { } else { name = programName; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(name)) { + if (_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hasProgram(name)) { Terminal.executeProgram(programName); return; } @@ -19170,26 +19180,26 @@ let Terminal = { //Contains the implementations of all possible programs executeProgram: function(programName) { - var s = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var s = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); var splitArgs = programName.split(" "); if (splitArgs.length > 1) { programName = splitArgs[0]; } switch (programName) { - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].NukeProgram.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].NukeProgram.name: if (s.hasAdminRights) { post("You already have root access to this computer. There is no reason to run NUKE.exe"); } else { - if (s.openPortCount >= _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().numOpenPortsRequired) { + if (s.openPortCount >= _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().numOpenPortsRequired) { s.hasAdminRights = true; - post("NUKE successful! Gained root access to " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname); + post("NUKE successful! Gained root access to " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer().hostname); //TODO Make this take time rather than be instant } else { post("NUKE unsuccessful. Not enough ports have been opened"); } } break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].BruteSSHProgram.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].BruteSSHProgram.name: if (s.sshPortOpen) { post("SSH Port (22) is already open!"); } else { @@ -19198,7 +19208,7 @@ let Terminal = { ++s.openPortCount; } break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].FTPCrackProgram.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].FTPCrackProgram.name: if (s.ftpPortOpen) { post("FTP Port (21) is already open!"); } else { @@ -19207,7 +19217,7 @@ let Terminal = { ++s.openPortCount; } break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].RelaySMTPProgram.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].RelaySMTPProgram.name: if (s.smtpPortOpen) { post("SMTP Port (25) is already open!"); } else { @@ -19216,7 +19226,7 @@ let Terminal = { ++s.openPortCount; } break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].HTTPWormProgram.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].HTTPWormProgram.name: if (s.httpPortOpen) { post("HTTP Port (80) is already open!"); } else { @@ -19225,7 +19235,7 @@ let Terminal = { ++s.openPortCount; } break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].SQLInjectProgram.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].SQLInjectProgram.name: if (s.sqlPortOpen) { post("SQL Port (1433) is already open!"); } else { @@ -19234,12 +19244,12 @@ let Terminal = { ++s.openPortCount; } break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].ServerProfiler.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].ServerProfiler.name: if (splitArgs.length != 2) { post("Must pass a server hostname or IP as an argument for ServerProfiler.exe"); return; } - var serv = Object(_Server_js__WEBPACK_IMPORTED_MODULE_16__["getServer"])(splitArgs[1]); + var serv = Object(_Server__WEBPACK_IMPORTED_MODULE_16__["getServer"])(splitArgs[1]); if (serv == null) { post("Invalid server IP/hostname"); return; @@ -19248,49 +19258,49 @@ let Terminal = { post("Server base security level: " + serv.baseDifficulty); post("Server current security level: " + serv.hackDifficulty); post("Server growth rate: " + serv.serverGrowth); - post("Netscript hack() execution time: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_10__["scriptCalculateHackingTime"])(serv), 1) + "s"); - post("Netscript grow() execution time: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_10__["scriptCalculateGrowTime"])(serv)/1000, 1) + "s"); - post("Netscript weaken() execution time: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_10__["scriptCalculateWeakenTime"])(serv)/1000, 1) + "s"); + post("Netscript hack() execution time: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_10__["scriptCalculateHackingTime"])(serv), 1) + "s"); + post("Netscript grow() execution time: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_10__["scriptCalculateGrowTime"])(serv)/1000, 1) + "s"); + post("Netscript weaken() execution time: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_20__["formatNumber"])(Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_10__["scriptCalculateWeakenTime"])(serv)/1000, 1) + "s"); break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].AutoLink.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].AutoLink.name: post("This executable cannot be run."); post("AutoLink.exe lets you automatically connect to other servers when using 'scan-analyze'."); post("When using scan-analyze, click on a server's hostname to connect to it."); break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV1.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV1.name: post("This executable cannot be run."); post("DeepscanV1.exe lets you run 'scan-analyze' with a depth up to 5."); break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV2.name: + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].DeepscanV2.name: post("This executable cannot be run."); post("DeepscanV2.exe lets you run 'scan-analyze' with a depth up to 10."); break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].Flight.name: - post("Augmentations: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].augmentations.length + " / 30"); + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].Flight.name: + post("Augmentations: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].augmentations.length + " / 30"); - post("Money: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12___default()(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].money.toNumber()).format('($0.000a)') + " / " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12___default()(1e11).format('($0.000a)')); + post("Money: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12___default()(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].money.toNumber()).format('($0.000a)') + " / " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12___default()(1e11).format('($0.000a)')); post("One path below must be fulfilled..."); post("----------HACKING PATH----------"); - post("Hacking skill: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].hacking_skill + " / 2500"); + post("Hacking skill: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].hacking_skill + " / 2500"); post("----------COMBAT PATH----------"); - post("Strength: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].strength + " / 1500"); - post("Defense: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].defense + " / 1500"); - post("Dexterity: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].dexterity + " / 1500"); - post("Agility: " + _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].agility + " / 1500"); + post("Strength: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].strength + " / 1500"); + post("Defense: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].defense + " / 1500"); + post("Dexterity: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].dexterity + " / 1500"); + post("Agility: " + _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].agility + " / 1500"); break; - case _CreateProgram_js__WEBPACK_IMPORTED_MODULE_2__["Programs"].BitFlume.name: - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxGetNoButton"])(); + case _CreateProgram__WEBPACK_IMPORTED_MODULE_2__["Programs"].BitFlume.name: + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Travel to BitNode Nexus"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", function() { - Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_14__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN, true); - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxClose"])(); + Object(_RedPill__WEBPACK_IMPORTED_MODULE_14__["hackWorldDaemon"])(_Player__WEBPACK_IMPORTED_MODULE_13__["Player"].bitNodeN, true); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxClose"])(); }); noBtn.addEventListener("click", function() { - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxCreate"])("WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE.

" + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_23__["yesNoBoxCreate"])("WARNING: USING THIS PROGRAM WILL CAUSE YOU TO LOSE ALL OF YOUR PROGRESS ON THE CURRENT BITNODE.

" + "Do you want to travel to the BitNode Nexus? This allows you to reset the current BitNode " + "and select a new one."); @@ -19302,7 +19312,7 @@ let Terminal = { }, runScript: function(scriptName) { - var server = _Player_js__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); + var server = _Player__WEBPACK_IMPORTED_MODULE_13__["Player"].getCurrentServer(); var numThreads = 1; var args = []; @@ -19360,7 +19370,7 @@ let Terminal = { //Check if this script is already running - if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, server) != null) { + if (Object(_Script__WEBPACK_IMPORTED_MODULE_15__["findRunningScript"])(scriptName, args, server) != null) { post("ERROR: This script is already running. Cannot run multiple instances"); return; } @@ -19370,7 +19380,7 @@ let Terminal = { if (server.scripts[i].filename == scriptName) { //Check for admin rights and that there is enough RAM availble to run var script = server.scripts[i]; - var ramUsage = script.ramUsage * numThreads * Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, numThreads-1); + var ramUsage = script.ramUsage * numThreads * Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].MultithreadingRAMCost, numThreads-1); var ramAvailable = server.maxRam - server.ramUsed; if (server.hasAdminRights == false) { @@ -19382,13 +19392,13 @@ let Terminal = { return; } else { //Able to run script - post("Running script with " + numThreads + " thread(s) and args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["printArray"])(args) + "."); + post("Running script with " + numThreads + " thread(s) and args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["printArray"])(args) + "."); post("May take a few seconds to start up the process..."); - var runningScriptObj = new _Script_js__WEBPACK_IMPORTED_MODULE_15__["RunningScript"](script, args); + var runningScriptObj = new _Script__WEBPACK_IMPORTED_MODULE_15__["RunningScript"](script, args); runningScriptObj.threads = numThreads; server.runningScripts.push(runningScriptObj); - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_11__["addWorkerScript"])(runningScriptObj, server); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_11__["addWorkerScript"])(runningScriptObj, server); return; } } @@ -24210,10 +24220,10 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iTutorialNextStep", function() { return iTutorialNextStep; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currITutorialStep", function() { return currITutorialStep; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iTutorialIsRunning", function() { return iTutorialIsRunning; }); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); @@ -24257,7 +24267,7 @@ var iTutorialIsRunning = false; function iTutorialStart() { //Don't autosave during this interactive tutorial - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = 999000000000; + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = 999000000000; console.log("Interactive Tutorial started"); currITutorialStep = iTutorialSteps.Start; iTutorialIsRunning = true; @@ -24267,14 +24277,14 @@ function iTutorialStart() { iTutorialEvaluateStep(); //Exit tutorial button - var exitButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-exit"); + var exitButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-exit"); exitButton.addEventListener("click", function() { iTutorialEnd(); return false; }); //Back button - var backButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-back"); + var backButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-back"); backButton.style.display = "none"; backButton.addEventListener("click", function() { iTutorialPrevStep(); @@ -24286,13 +24296,13 @@ function iTutorialEvaluateStep() { if (!iTutorialIsRunning) {console.log("Interactive Tutorial not running"); return;} switch(currITutorialStep) { case iTutorialSteps.Start: - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); iTutorialSetText("Welcome to Bitburner, a cyberpunk-themed incremental RPG! " + "The game takes place in a dark, dystopian future...The year is 2077...

" + "This tutorial will show you the basics of the game. " + "You may skip the tutorial at any time."); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "inline-block"; next.addEventListener("click", function() { iTutorialNextStep(); @@ -24304,7 +24314,7 @@ function iTutorialEvaluateStep() { "the main navigation menu (left-hand side of the screen)"); //No next button - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "none"; //Flash Character tab @@ -24313,16 +24323,16 @@ function iTutorialEvaluateStep() { //Initialize everything necessary to open the "Character" page var charaterMainMenuButton = document.getElementById("stats-menu-link"); charaterMainMenuButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadCharacterContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadCharacterContent(); iTutorialNextStep(); //Opening the character page will go to the next step - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("stats-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("stats-menu-link"); return false; }); break; case iTutorialSteps.CharacterPage: iTutorialSetText("The Stats page shows a lot of important information about your progress, " + "such as your skills, money, and bonuses/multipliers. ") - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "inline-block"; next.addEventListener("click", function() { iTutorialNextStep(); @@ -24333,7 +24343,7 @@ function iTutorialEvaluateStep() { iTutorialSetText("Let's head to your computer's terminal by clicking the 'Terminal' tab on the " + "main navigation menu."); //No next button - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "none"; document.getElementById("terminal-menu-link").setAttribute("class", "flashing-button"); @@ -24341,16 +24351,16 @@ function iTutorialEvaluateStep() { //Initialize everything necessary to open the 'Terminal' Page var terminalMainMenuButton = document.getElementById("terminal-menu-link"); terminalMainMenuButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); iTutorialNextStep(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); return false; }); break; case iTutorialSteps.TerminalIntro: iTutorialSetText("The Terminal is used to interface with your home computer as well as " + "all of the other machines around the world."); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "inline-block"; next.addEventListener("click", function() { iTutorialNextStep(); @@ -24360,7 +24370,7 @@ function iTutorialEvaluateStep() { case iTutorialSteps.TerminalHelp: iTutorialSetText("Let's try it out. Start by entering the 'help' command into the Terminal " + "(Don't forget to press Enter after typing the command)"); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "none"; //next step triggered by terminal command break; @@ -24436,7 +24446,7 @@ function iTutorialEvaluateStep() { "the server's security level.

The amount of money on a server is not limitless. So, if " + "you constantly hack a server and deplete its money, then you will encounter " + "diminishing returns in your hacking."); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "inline-block"; next.addEventListener("click", function() { iTutorialNextStep(); @@ -24450,7 +24460,7 @@ function iTutorialEvaluateStep() { "command. Scripts must end with the '.script' extension. Let's make a script now by " + "entering 'nano foodnstuff.script' after the hack command finishes running (Sidenote: Pressing ctrl + c" + " will end a command like hack early)"); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "none"; //next step triggered by terminal command break; @@ -24493,9 +24503,9 @@ function iTutorialEvaluateStep() { document.getElementById("active-scripts-menu-link").setAttribute("class", "flashing-button"); var activeScriptsMainMenuButton = document.getElementById("active-scripts-menu-link"); activeScriptsMainMenuButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadActiveScriptsContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadActiveScriptsContent(); iTutorialNextStep(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("active-scripts-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("active-scripts-menu-link"); return false; }); break; @@ -24506,11 +24516,11 @@ function iTutorialEvaluateStep() { "link."); document.getElementById("terminal-menu-link").setAttribute("class", "flashing-button"); //Initialize everything necessary to open the 'Terminal' Page - var terminalMainMenuButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); + var terminalMainMenuButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); terminalMainMenuButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); iTutorialNextStep(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("terminal-menu-link"); return false; }); break; @@ -24527,7 +24537,7 @@ function iTutorialEvaluateStep() { "scripts using the Netscript language, select the 'Tutorial' link in the " + "main navigation menu to look at the documentation. For now, let's move on " + "to something else!"); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "inline-block"; next.addEventListener("click", function() { iTutorialNextStep(); @@ -24539,13 +24549,13 @@ function iTutorialEvaluateStep() { "earn money is by purchasing and upgrading Hacknet Nodes. Let's go to " + "the 'Hacknet Nodes' page through the main navigation menu now."); document.getElementById("hacknet-nodes-menu-link").setAttribute("class", "flashing-button"); - var hacknetNodesButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("hacknet-nodes-menu-link"); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var hacknetNodesButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("hacknet-nodes-menu-link"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "none"; hacknetNodesButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadHacknetNodesContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadHacknetNodesContent(); iTutorialNextStep(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("hacknet-nodes-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("hacknet-nodes-menu-link"); return false; }); break; @@ -24561,11 +24571,11 @@ function iTutorialEvaluateStep() { "your newly-purchased Hacknet Node below.

" + "Let's go to the 'City' page through the main navigation menu."); document.getElementById("city-menu-link").setAttribute("class", "flashing-button"); - var worldButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("city-menu-link"); + var worldButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("city-menu-link"); worldButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadWorldContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadWorldContent(); iTutorialNextStep(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("city-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("city-menu-link"); return false; }); break; @@ -24576,11 +24586,11 @@ function iTutorialEvaluateStep() { "you explore and discover!

" + "Lastly, click on the 'Tutorial' link in the main navigation menu."); document.getElementById("tutorial-menu-link").setAttribute("class", "flashing-button"); - var tutorialButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("tutorial-menu-link"); + var tutorialButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("tutorial-menu-link"); tutorialButton.addEventListener("click", function() { - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTutorialContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTutorialContent(); iTutorialNextStep(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("tutorial-menu-link"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("tutorial-menu-link"); return false; }); break; @@ -24590,11 +24600,11 @@ function iTutorialEvaluateStep() { "content and mechanics. I know it's a lot, but I highly suggest you read " + "(or at least skim) through this before you start playing. That's the end of the tutorial. " + "Hope you enjoy the game!"); - var next = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); + var next = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-next"); next.style.display = "inline-block"; next.innerHTML = "Finish Tutorial"; - var backButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-back"); + var backButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("interactive-tutorial-back"); backButton.style.display = "none"; next.addEventListener("click", function() { @@ -24855,18 +24865,18 @@ function iTutorialPrevStep() { function iTutorialEnd() { //Re-enable auto save - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = 300; + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].Counters.autoSaveCounter = 300; console.log("Ending interactive tutorial"); - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].init(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].init(); currITutorialStep = iTutorialSteps.End; iTutorialIsRunning = false; document.getElementById("interactive-tutorial-container").style.display = "none"; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_2__["dialogBoxCreate"])("If you are new to the game, the following links may be useful for you!

" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_2__["dialogBoxCreate"])("If you are new to the game, the following links may be useful for you!

" + "Getting Started Guide" + "Wiki

" + "The Beginner's Guide to Hacking was added to your home computer! It contains some tips/pointers for starting out with the game. " + "To read it, go to Terminal and enter

cat hackers-starting-handbook.lit"); - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer().messages.push("hackers-starting-handbook.lit"); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer().messages.push("hackers-starting-handbook.lit"); } function iTutorialSetText(txt) { @@ -24896,24 +24906,24 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AllServersMap", function() { return AllServersMap; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scriptEditorInit", function() { return scriptEditorInit; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isScriptFilename", function() { return isScriptFilename; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Fconf_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fconf.js */ 32); -/* harmony import */ var _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial.js */ 24); -/* harmony import */ var _NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEvaluator.js */ 6); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Terminal.js */ 22); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Fconf */ 32); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 24); +/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Terminal */ 22); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./TextFile */ 43); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn.js */ 35); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_12__); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/acorn */ 35); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_12__); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_16__); var ace = __webpack_require__(/*! brace */ 200); @@ -24972,7 +24982,7 @@ function scriptEditorInit() { console.log("Error finding 'script-editor-buttons-wrapper'"); return; } - var beautifyButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["createElement"])("a", { + var beautifyButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Beautify", clickListener:()=>{ @@ -24981,7 +24991,7 @@ function scriptEditorInit() { } }); - var closeButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["createElement"])("a", { + var closeButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Save & Close (Ctrl/Cmd + b)", clickListener:()=>{ @@ -24990,11 +25000,11 @@ function scriptEditorInit() { } }); - scriptEditorRamText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["createElement"])("p", { + scriptEditorRamText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["createElement"])("p", { display:"inline-block", margin:"10px", id:"script-editor-status-text" }); - var checkboxLabel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["createElement"])("label", { + var checkboxLabel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["createElement"])("label", { for:"script-editor-ram-check", margin:"4px", marginTop: "8px", innerText:"Dynamic RAM Usage Checker", color:"white", tooltip:"Enable/Disable the dynamic RAM Usage display. You may " + @@ -25002,13 +25012,13 @@ function scriptEditorInit() { "performance issues" }); - scriptEditorRamCheck = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["createElement"])("input", { + scriptEditorRamCheck = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["createElement"])("input", { type:"checkbox", name:"script-editor-ram-check", id:"script-editor-ram-check", margin:"4px", marginTop: "8px", }); scriptEditorRamCheck.checked = true; - var documentationButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["createElement"])("a", { + var documentationButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["createElement"])("a", { display:"inline-block", class:"a-link-button", innerText:"Netscript Documentation", href:"https://bitburner.readthedocs.io/en/latest/index.html", target:"_blank" @@ -25031,10 +25041,10 @@ function scriptEditorInit() { /* Script editor options */ //Theme var themeDropdown = document.getElementById("script-editor-option-theme"); - if (_Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorTheme) { + if (_Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorTheme) { var initialIndex = 2; for (var i = 0; i < themeDropdown.options.length; ++i) { - if (themeDropdown.options[i].value === _Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorTheme) { + if (themeDropdown.options[i].value === _Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorTheme) { initialIndex = i; break; } @@ -25046,7 +25056,7 @@ function scriptEditorInit() { themeDropdown.onchange = function() { var val = themeDropdown.value; - _Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorTheme = val; + _Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorTheme = val; var themePath = "ace/theme/" + val.toLowerCase(); editor.setTheme(themePath); }; @@ -25054,10 +25064,10 @@ function scriptEditorInit() { //Keybinding var keybindingDropdown = document.getElementById("script-editor-option-keybinding"); - if (_Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorKeybinding) { + if (_Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorKeybinding) { var initialIndex = 0; for (var i = 0; i < keybindingDropdown.options.length; ++i) { - if (keybindingDropdown.options[i].value === _Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorKeybinding) { + if (keybindingDropdown.options[i].value === _Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorKeybinding) { initialIndex = i; break; } @@ -25068,7 +25078,7 @@ function scriptEditorInit() { } keybindingDropdown.onchange = function() { var val = keybindingDropdown.value; - _Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorKeybinding = val; + _Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].EditorKeybinding = val; editor.setKeyboardHandler(keybindings[val.toLowerCase()]); }; keybindingDropdown.onchange(); @@ -25107,7 +25117,7 @@ function scriptEditorInit() { saveAndCloseScriptEditor(); }); VimApi.defineEx('quit', 'q', function(cm, input) { - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); }); VimApi.defineEx('xwritequit', 'x', function(cm, input) { saveAndCloseScriptEditor(); @@ -25123,7 +25133,7 @@ function scriptEditorInit() { getCompletions: function(editor, session, pos, prefix, callback) { if (prefix.length === 0) {callback(null, []); return;} var words = []; - var fns = Object(_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_5__["NetscriptFunctions"])(null); + var fns = Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_5__["NetscriptFunctions"])(null); for (var name in fns) { if (fns.hasOwnProperty(name)) { words.push({ @@ -25158,8 +25168,8 @@ function updateScriptEditorContent() { //Define key commands in script editor (ctrl o to save + close, etc.) $(document).keydown(function(e) { - if (_Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].DisableHotkeys === true) {return;} - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.ScriptEditor) { + if (_Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].DisableHotkeys === true) {return;} + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.ScriptEditor) { //Ctrl + b if (e.keyCode == 66 && (e.ctrlKey || e.metaKey)) { e.preventDefault(); @@ -25179,35 +25189,35 @@ function saveAndCloseScriptEditor() { var filename = document.getElementById("script-editor-filename").value; var editor = ace.edit('javascript-editor'); var code = editor.getValue(); - if (_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["iTutorialIsRunning"] && _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["currITutorialStep"] == _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["iTutorialSteps"].TerminalTypeScript) { + if (_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["iTutorialIsRunning"] && _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["currITutorialStep"] == _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["iTutorialSteps"].TerminalTypeScript) { if (filename != "foodnstuff.script") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Leave the script name as 'foodnstuff'!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Leave the script name as 'foodnstuff'!"); return; } code = code.replace(/\s/g, ""); if (code.indexOf("while(true){hack('foodnstuff');}") == -1) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Please copy and paste the code from the tutorial!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Please copy and paste the code from the tutorial!"); return; } - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["iTutorialNextStep"])(); + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["iTutorialNextStep"])(); } if (filename == "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You must specify a filename!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("You must specify a filename!"); return; } if (checkValidFilename(filename) == false) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Script filename can contain only alphanumerics, hyphens, and underscores"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Script filename can contain only alphanumerics, hyphens, and underscores"); return; } - var s = _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].getCurrentServer(); + var s = _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].getCurrentServer(); if (filename === ".fconf") { try { - Object(_Fconf_js__WEBPACK_IMPORTED_MODULE_2__["parseFconfSettings"])(code); + Object(_Fconf__WEBPACK_IMPORTED_MODULE_2__["parseFconfSettings"])(code); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid .fconf file"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid .fconf file"); return; } } else if (isScriptFilename(filename)) { @@ -25215,7 +25225,7 @@ function saveAndCloseScriptEditor() { for (var i = 0; i < s.scripts.length; i++) { if (filename == s.scripts[i].filename) { s.scripts[i].saveScript(); - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); return; } } @@ -25228,18 +25238,18 @@ function saveAndCloseScriptEditor() { for (var i = 0; i < s.textFiles.length; ++i) { if (s.textFiles[i].fn === filename) { s.textFiles[i].write(code); - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); return; } } var textFile = new _TextFile__WEBPACK_IMPORTED_MODULE_11__["TextFile"](filename, code); s.textFiles.push(textFile); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid filename. Must be either a script (.script) or " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_13__["dialogBoxCreate"])("Invalid filename. Must be either a script (.script) or " + " or text file (.txt)") return; } - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadTerminalContent(); } //Checks that the string contains only valid characters for a filename, which are alphanumeric, @@ -25263,7 +25273,7 @@ function Script() { //Get the script data from the Script Editor and save it to the object Script.prototype.saveScript = function() { - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.ScriptEditor) { + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.ScriptEditor) { //Update code and filename var editor = ace.edit('javascript-editor'); var code = editor.getValue(); @@ -25273,7 +25283,7 @@ Script.prototype.saveScript = function() { this.filename = filename; //Server - this.server = _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].currentServer; + this.server = _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].currentServer; //Calculate/update ram usage, execution time, etc. this.updateRamUsage(); @@ -25353,7 +25363,7 @@ function parseOnlyRamCalculate(server, code, workerScript) { // Finally, walk the reference map and generate a ram cost. The initial set of keys to scan // are those that start with __SPECIAL_INITIAL_MODULE__. - let ram = _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptBaseRamCost; + let ram = _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptBaseRamCost; const unresolvedRefs = Object.keys(dependencyMap).filter(s => s.startsWith(initialModule)); const resolvedRefs = new Set(); while (unresolvedRefs.length > 0) { @@ -25376,11 +25386,11 @@ function parseOnlyRamCalculate(server, code, workerScript) { } // Check if this is one of the special keys, and add the appropriate ram cost if so. - if (ref == specialReferenceIF) ram += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptIfRamCost; - if (ref == specialReferenceFOR) ram += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptForRamCost; - if (ref == specialReferenceWHILE) ram += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptWhileRamCost; - if (ref == "hacknetnodes") ram += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptHacknetNodesRamCost; - if (ref == "document" || ref == "window") ram += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptDomRamCost; + if (ref == specialReferenceIF) ram += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptIfRamCost; + if (ref == specialReferenceFOR) ram += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptForRamCost; + if (ref == specialReferenceWHILE) ram += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptWhileRamCost; + if (ref == "hacknetnodes") ram += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptHacknetNodesRamCost; + if (ref == "document" || ref == "window") ram += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptDomRamCost; // Check if this ident is a function in the workerscript env. If it is, then we need to // get its RAM cost. We do this by calling it, which works because the running script @@ -25429,7 +25439,7 @@ function parseOnlyRamCalculate(server, code, workerScript) { // Returns a cost map and a dependencyMap for the module. Returns a reference map to be joined // onto the main reference map, and a list of modules that need to be parsed. function parseOnlyCalculateDeps(code, currentModule) { - const ast = Object(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_12__["parse"])(code, {sourceType:"module", ecmaVersion: 8}); + const ast = Object(_utils_acorn__WEBPACK_IMPORTED_MODULE_12__["parse"])(code, {sourceType:"module", ecmaVersion: 8}); // Everything from the global scope goes in ".". Everything else goes in ".function", where only // the outermost layer of functions counts. @@ -25528,8 +25538,8 @@ function parseOnlyCalculateDeps(code, currentModule) { function calculateRamUsage(codeCopy) { //Create a temporary/mock WorkerScript and an AST from the code - var currServ = _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].getCurrentServer(); - var workerScript = new _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_6__["WorkerScript"]({ + var currServ = _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].getCurrentServer(); + var workerScript = new _NetscriptWorker__WEBPACK_IMPORTED_MODULE_6__["WorkerScript"]({ filename:"foo", scriptRef: {code:""}, args:[] @@ -25546,13 +25556,13 @@ function calculateRamUsage(codeCopy) { // Try the old way. try { - var ast = Object(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_12__["parse"])(codeCopy, {sourceType:"module"}); + var ast = Object(_utils_acorn__WEBPACK_IMPORTED_MODULE_12__["parse"])(codeCopy, {sourceType:"module"}); } catch(e) { return -1; } //Search through AST, scanning for any 'Identifier' nodes for functions, or While/For/If nodes - var queue = [], ramUsage = _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptBaseRamCost; + var queue = [], ramUsage = _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptBaseRamCost; var whileUsed = false, forUsed = false, ifUsed = false; queue.push(ast); while (queue.length != 0) { @@ -25561,7 +25571,7 @@ function calculateRamUsage(codeCopy) { case "ImportDeclaration": //Gets an array of all imported functions as AST expressions //and pushes them on the queue. - var res = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_4__["evaluateImport"])(exp, workerScript, true); + var res = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_4__["evaluateImport"])(exp, workerScript, true); for (var i = 0; i < res.length; ++i) { queue.push(res[i]); } @@ -25569,26 +25579,26 @@ function calculateRamUsage(codeCopy) { case "BlockStatement": case "Program": for (var i = 0; i < exp.body.length; ++i) { - if (exp.body[i] instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_12__["Node"]) { + if (exp.body[i] instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_12__["Node"]) { queue.push(exp.body[i]); } } break; case "WhileStatement": if (!whileUsed) { - ramUsage += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptWhileRamCost; + ramUsage += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptWhileRamCost; whileUsed = true; } break; case "ForStatement": if (!forUsed) { - ramUsage += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptForRamCost; + ramUsage += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptForRamCost; forUsed = true; } break; case "IfStatement": if (!ifUsed) { - ramUsage += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptIfRamCost; + ramUsage += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptIfRamCost; ifUsed = true; } break; @@ -25613,7 +25623,7 @@ function calculateRamUsage(codeCopy) { for (var prop in exp) { if (exp.hasOwnProperty(prop)) { - if (exp[prop] instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_12__["Node"]) { + if (exp[prop] instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_12__["Node"]) { queue.push(exp[prop]); } } @@ -25622,7 +25632,7 @@ function calculateRamUsage(codeCopy) { //Special case: hacknetnodes array if (codeCopy.includes("hacknetnodes")) { - ramUsage += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptHacknetNodesRamCost; + ramUsage += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ScriptHacknetNodesRamCost; } return ramUsage; } @@ -25647,15 +25657,15 @@ Script.prototype.download = function() { } Script.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("Script", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("Script", this); } Script.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(Script, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(Script, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.Script = Script; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.Script = Script; //Called when the game is loaded. Loads all running scripts (from all servers) //into worker scripts so that they will start running @@ -25664,9 +25674,9 @@ function loadAllRunningScripts() { var total = 0; let skipScriptLoad = (window.location.href.toLowerCase().indexOf("?noscripts") !== -1); if (skipScriptLoad) {console.log("Skipping the load of any scripts during startup");} - for (var property in _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"]) { - if (_Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"].hasOwnProperty(property)) { - var server = _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][property]; + for (var property in _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"]) { + if (_Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"].hasOwnProperty(property)) { + var server = _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][property]; //Reset each server's RAM usage to 0 server.ramUsed = 0; @@ -25683,7 +25693,7 @@ function loadAllRunningScripts() { for (var j = 0; j < server.runningScripts.length; ++j) { count++; server.runningScripts[j].scriptRef.module = ""; - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_6__["addWorkerScript"])(server.runningScripts[j], server); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_6__["addWorkerScript"])(server.runningScripts[j], server); //Offline production total += scriptCalculateOfflineProduction(server.runningScripts[j]); @@ -25698,7 +25708,7 @@ function loadAllRunningScripts() { function scriptCalculateOfflineProduction(runningScriptObj) { //The Player object stores the last update time from when we were online var thisUpdate = new Date().getTime(); - var lastUpdate = _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].lastUpdate; + var lastUpdate = _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].lastUpdate; var timePassed = (thisUpdate - lastUpdate) / 1000; //Seconds console.log("Offline for " + timePassed + " seconds"); @@ -25714,12 +25724,12 @@ function scriptCalculateOfflineProduction(runningScriptObj) { for (var ip in runningScriptObj.dataMap) { if (runningScriptObj.dataMap.hasOwnProperty(ip)) { if (runningScriptObj.dataMap[ip][2] == 0 || runningScriptObj.dataMap[ip][2] == null) {continue;} - var serv = _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; + var serv = _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; if (serv == null) {continue;} var timesGrown = Math.round(0.5 * runningScriptObj.dataMap[ip][2] / runningScriptObj.onlineRunningTime * timePassed); console.log(runningScriptObj.filename + " called grow() on " + serv.hostname + " " + timesGrown + " times while offline"); runningScriptObj.log("Called grow() on " + serv.hostname + " " + timesGrown + " times while offline"); - var growth = Object(_Server_js__WEBPACK_IMPORTED_MODULE_8__["processSingleServerGrowth"])(serv, timesGrown * 450); + var growth = Object(_Server__WEBPACK_IMPORTED_MODULE_8__["processSingleServerGrowth"])(serv, timesGrown * 450); runningScriptObj.log(serv.hostname + " grown by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_16__["formatNumber"])(growth * 100 - 100, 6) + "% from grow() calls made while offline"); } } @@ -25728,7 +25738,7 @@ function scriptCalculateOfflineProduction(runningScriptObj) { for (var ip in runningScriptObj.dataMap) { if (runningScriptObj.dataMap.hasOwnProperty(ip)) { if (runningScriptObj.dataMap[ip][0] == 0 || runningScriptObj.dataMap[ip][0] == null) {continue;} - var serv = _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; + var serv = _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; if (serv == null) {continue;} var production = 0.5 * runningScriptObj.dataMap[ip][0] / runningScriptObj.onlineRunningTime * timePassed; production *= confidence; @@ -25736,7 +25746,7 @@ function scriptCalculateOfflineProduction(runningScriptObj) { production = serv.moneyAvailable; } totalOfflineProduction += production; - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].gainMoney(production); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].gainMoney(production); console.log(runningScriptObj.filename + " generated $" + production + " while offline by hacking " + serv.hostname); runningScriptObj.log(runningScriptObj.filename + " generated $" + production + " while offline by hacking " + serv.hostname); serv.moneyAvailable -= production; @@ -25750,7 +25760,7 @@ function scriptCalculateOfflineProduction(runningScriptObj) { var expGain = 0.5 * (runningScriptObj.onlineExpGained / runningScriptObj.onlineRunningTime) * timePassed; expGain *= confidence; - _Player_js__WEBPACK_IMPORTED_MODULE_7__["Player"].gainHackingExp(expGain); + _Player__WEBPACK_IMPORTED_MODULE_7__["Player"].gainHackingExp(expGain); //Update script stats runningScriptObj.offlineMoneyMade += totalOfflineProduction; @@ -25761,12 +25771,12 @@ function scriptCalculateOfflineProduction(runningScriptObj) { for (var ip in runningScriptObj.dataMap) { if (runningScriptObj.dataMap.hasOwnProperty(ip)) { if (runningScriptObj.dataMap[ip][1] == 0 || runningScriptObj.dataMap[ip][1] == null) {continue;} - var serv = _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; + var serv = _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; if (serv == null) {continue;} var timesHacked = Math.round(0.5 * runningScriptObj.dataMap[ip][1] / runningScriptObj.onlineRunningTime * timePassed); console.log(runningScriptObj.filename + " hacked " + serv.hostname + " " + timesHacked + " times while offline"); runningScriptObj.log("Hacked " + serv.hostname + " " + timesHacked + " times while offline"); - serv.fortify(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ServerFortifyAmount * timesHacked); + serv.fortify(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ServerFortifyAmount * timesHacked); } } @@ -25774,12 +25784,12 @@ function scriptCalculateOfflineProduction(runningScriptObj) { for (var ip in runningScriptObj.dataMap) { if (runningScriptObj.dataMap.hasOwnProperty(ip)) { if (runningScriptObj.dataMap[ip][3] == 0 || runningScriptObj.dataMap[ip][3] == null) {continue;} - var serv = _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; + var serv = _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip]; if (serv == null) {continue;} var timesWeakened = Math.round(0.5 * runningScriptObj.dataMap[ip][3] / runningScriptObj.onlineRunningTime * timePassed); console.log(runningScriptObj.filename + " called weaken() on " + serv.hostname + " " + timesWeakened + " times while offline"); runningScriptObj.log("Called weaken() on " + serv.hostname + " " + timesWeakened + " times while offline"); - serv.weaken(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ServerWeakenAmount * timesWeakened); + serv.weaken(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].ServerWeakenAmount * timesWeakened); } } @@ -25791,7 +25801,7 @@ function scriptCalculateOfflineProduction(runningScriptObj) { function findRunningScript(filename, args, server) { for (var i = 0; i < server.runningScripts.length; ++i) { if (server.runningScripts[i].filename == filename && - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_15__["compareArrays"])(server.runningScripts[i].args, args)) { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_15__["compareArrays"])(server.runningScripts[i].args, args)) { return server.runningScripts[i]; } } @@ -25823,15 +25833,15 @@ function RunningScript(script, args) { } RunningScript.prototype.log = function(txt) { - if (this.logs.length > _Settings_js__WEBPACK_IMPORTED_MODULE_9__["Settings"].MaxLogCapacity) { + if (this.logs.length > _Settings__WEBPACK_IMPORTED_MODULE_9__["Settings"].MaxLogCapacity) { //Delete first element and add new log entry to the end. //TODO Eventually it might be better to replace this with circular array //to improve performance this.logs.shift(); } let logEntry = txt; - if (_Fconf_js__WEBPACK_IMPORTED_MODULE_2__["FconfSettings"].ENABLE_TIMESTAMPS) { - logEntry = "[" + _Terminal_js__WEBPACK_IMPORTED_MODULE_10__["Terminal"].getTimestamp() + "] " + logEntry; + if (_Fconf__WEBPACK_IMPORTED_MODULE_2__["FconfSettings"].ENABLE_TIMESTAMPS) { + logEntry = "[" + _Terminal__WEBPACK_IMPORTED_MODULE_10__["Terminal"].getTimestamp() + "] " + logEntry; } this.logs.push(logEntry); this.logUpd = true; @@ -25839,7 +25849,7 @@ RunningScript.prototype.log = function(txt) { RunningScript.prototype.displayLog = function() { for (var i = 0; i < this.logs.length; ++i) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_10__["post"])(this.logs[i]); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_10__["post"])(this.logs[i]); } } @@ -25876,22 +25886,22 @@ RunningScript.prototype.recordWeaken = function(serverIp, n=1) { } RunningScript.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("RunningScript", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("RunningScript", this); } RunningScript.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(RunningScript, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(RunningScript, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.RunningScript = RunningScript; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.RunningScript = RunningScript; //Creates an object that creates a map/dictionary with the IP of each existing server as //a key. Initializes every key with a specified value that can either by a number or an array function AllServersMap(arr=false, filterOwned=false) { - for (var ip in _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"]) { - if (_Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"].hasOwnProperty(ip)) { - if (filterOwned && (_Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip].purchasedByPlayer || _Server_js__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip].hostname === "home")) { + for (var ip in _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"]) { + if (_Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"].hasOwnProperty(ip)) { + if (filterOwned && (_Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip].purchasedByPlayer || _Server__WEBPACK_IMPORTED_MODULE_8__["AllServers"][ip].hostname === "home")) { continue; } if (arr) { @@ -25904,15 +25914,15 @@ function AllServersMap(arr=false, filterOwned=false) { } AllServersMap.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("AllServersMap", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_toJSON"])("AllServersMap", this); } AllServersMap.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(AllServersMap, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Generic_fromJSON"])(AllServersMap, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.AllServersMap = AllServersMap; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.AllServersMap = AllServersMap; @@ -25928,18 +25938,18 @@ _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_14__["Reviver"].constructors.AllS "use strict"; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Bladeburner", function() { return Bladeburner; }); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _RedPill_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./RedPill.js */ 37); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Terminal.js */ 22); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./RedPill */ 37); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Terminal */ 22); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_12__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); @@ -26000,7 +26010,7 @@ var OperationSuccessesPerLevel = 2.5; //How many successes you need to level up var RanksPerSkillPoint = 4; //How many ranks needed to get 1 Skill Point -var ContractBaseMoneyGain = 10e3; //Base Money Gained per contract +var ContractBaseMoneyGain = 40e3; //Base Money Gained per contract //DOM related variables var ActiveActionCssClass = "bladeburner-active-action"; @@ -26079,25 +26089,25 @@ var consoleHelpText = { //Keypresses for Console $(document).keydown(function(event) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { //if (DomElems.consoleInput && !event.ctrlKey && !event.shiftKey && !event.altKey) { // DomElems.consoleInput.focus(); //} - if (!(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner instanceof Bladeburner)) {return;} + if (!(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner instanceof Bladeburner)) {return;} //NOTE: Keycodes imported from Terminal.js - if (event.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_8__["KEY"].ENTER) { + if (event.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_8__["KEY"].ENTER) { event.preventDefault(); var command = DomElems.consoleInput.value; if (command.length > 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner.postToConsole("> " + command); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner.resetConsoleInput(); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner.executeConsoleCommands(command); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner.postToConsole("> " + command); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner.resetConsoleInput(); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner.executeConsoleCommands(command); } } - if (event.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_8__["KEY"].UPARROW) { + if (event.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_8__["KEY"].UPARROW) { if (DomElems.consoleInput == null) {return;} var i = consoleHistoryIndex; var len = consoleHistory.length; @@ -26116,7 +26126,7 @@ $(document).keydown(function(event) { setTimeout(function(){DomElems.consoleInput.selectionStart = DomElems.consoleInput.selectionEnd = 10000; }, 0); } - if (event.keyCode === _Terminal_js__WEBPACK_IMPORTED_MODULE_8__["KEY"].DOWNARROW) { + if (event.keyCode === _Terminal__WEBPACK_IMPORTED_MODULE_8__["KEY"].DOWNARROW) { if (DomElems.consoleInput == null) {return;} var i = consoleHistoryIndex; var len = consoleHistory.length; @@ -26140,15 +26150,15 @@ $(document).keydown(function(event) { }); function City(params={}) { - this.name = params.name ? params.name : _Location_js__WEBPACK_IMPORTED_MODULE_5__["Locations"].Sector12; + this.name = params.name ? params.name : _Location__WEBPACK_IMPORTED_MODULE_5__["Locations"].Sector12; //Synthoid population and estimate - this.pop = params.pop ? params.pop : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(800e6, 1.2*PopulationThreshold); + this.pop = params.pop ? params.pop : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(800e6, 1.2*PopulationThreshold); this.popEst = this.pop * (Math.random() + 0.5); //Number of Synthoid communities population and estimate - this.comms = params.comms ? params.comms : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 40); - this.commsEst = this.comms + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-2, 2); + this.comms = params.comms ? params.comms : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 40); + this.commsEst = this.comms + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-2, 2); if (this.commsEst < 0) {this.commsEst = 0;} this.chaos = 0; } @@ -26197,7 +26207,7 @@ City.prototype.changePopulationByCount = function(n, params={}) { this.pop += n; if (params.estChange && !isNaN(params.estChange)) {this.popEst += params.estChange;} if (params.estOffset) { - this.popEst = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(this.popEst, params.estOffset); + this.popEst = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(this.popEst, params.estOffset); } this.popEst = Math.max(this.popEst, 0); } @@ -26241,12 +26251,12 @@ City.prototype.changeChaosByPercentage = function(p) { } City.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("City", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("City", this); } City.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(City, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(City, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.City = City; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.City = City; function Skill(params={name:"foo", desc:"foo"}) { if (params.name) { @@ -26292,7 +26302,7 @@ function Skill(params={name:"foo", desc:"foo"}) { } Skill.prototype.calculateCost = function(currentLevel) { - return (this.baseCost + (currentLevel * this.costInc)) * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].BladeburnerSkillCost; + return (this.baseCost + (currentLevel * this.costInc)) * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].BladeburnerSkillCost; } var Skills = {}; var SkillNames = { @@ -26322,7 +26332,7 @@ function Action(params={}) { this.level = 1; this.maxLevel = 1; this.autoLevel = true; - this.baseDifficulty = params.baseDifficulty ? Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(params.baseDifficulty, 10) : 100; + this.baseDifficulty = params.baseDifficulty ? Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(params.baseDifficulty, 10) : 100; this.difficultyFac = params.difficultyFac ? params.difficultyFac : 1.01; //Rank increase/decrease is affected by this exponent @@ -26345,8 +26355,8 @@ function Action(params={}) { //Number of this contract remaining, and its growth rate //Growth rate is an integer and the count will increase by that integer every "cycle" - this.count = params.count ? params.count : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1e3, 25e3); - this.countGrowth = params.countGrowth ? params.countGrowth : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 5); + this.count = params.count ? params.count : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1e3, 25e3); + this.countGrowth = params.countGrowth ? params.countGrowth : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 5); //Weighting of each stat in determining action success rate var defaultWeights = {hack:1/7,str:1/7,def:1/7,dex:1/7,agi:1/7,cha:1/7,int:1/7}; @@ -26393,7 +26403,7 @@ Action.prototype.getSuccessChance = function(inst, params={}) { var competence = 0; for (var stat in this.weights) { if (this.weights.hasOwnProperty(stat)) { - var playerStatLvl = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].queryStatFromString(stat); + var playerStatLvl = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].queryStatFromString(stat); var key = "eff" + stat.charAt(0).toUpperCase() + stat.slice(1); var effMultiplier = inst.skillMultipliers[key]; if (effMultiplier == null) { @@ -26452,7 +26462,7 @@ Action.prototype.getSuccessChance = function(inst, params={}) { } //Augmentation multiplier - competence *= _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult; + competence *= _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult; if (isNaN(competence)) {throw new Error("Competence calculated as NaN in Action.getSuccessChance()");} return Math.min(1, competence / difficulty); @@ -26469,8 +26479,8 @@ Action.prototype.getActionTime = function(inst) { var baseTime = difficulty / DifficultyToTimeFactor; var skillFac = inst.skillMultipliers.actionTime; //Always < 1 - var effAgility = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility * inst.skillMultipliers.effAgi; - var effDexterity = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity * inst.skillMultipliers.effDex; + var effAgility = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility * inst.skillMultipliers.effAgi; + var effDexterity = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity * inst.skillMultipliers.effDex; var statFac = 0.5 * (Math.pow(effAgility, EffAgiExponentialFactor) + Math.pow(effDexterity, EffDexExponentialFactor) + (effAgility / EffAgiLinearFactor) + @@ -26500,12 +26510,12 @@ Action.prototype.setMaxLevel = function(baseSuccessesPerLevel) { } Action.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Action", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Action", this); } Action.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Action, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Action, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Action = Action; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Action = Action; var GeneralActions = {}; //Training, Field Analysis, Recruitment, etc. //Action Identifier @@ -26525,12 +26535,12 @@ function ActionIdentifier(params={}) { if (params.type) {this.type = params.type;} } ActionIdentifier.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("ActionIdentifier", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("ActionIdentifier", this); } ActionIdentifier.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(ActionIdentifier, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(ActionIdentifier, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.ActionIdentifier = ActionIdentifier; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.ActionIdentifier = ActionIdentifier; //Contracts function Contract(params={}) { @@ -26538,12 +26548,12 @@ function Contract(params={}) { } Contract.prototype = Object.create(Action.prototype); Contract.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Contract", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Contract", this); } Contract.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Contract, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Contract, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Contract = Contract; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Contract = Contract; //Operations function Operation(params={}) { @@ -26553,12 +26563,12 @@ function Operation(params={}) { } Operation.prototype = Object.create(Action.prototype); Operation.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Operation", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Operation", this); } Operation.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Operation, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Operation, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Operation = Operation; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Operation = Operation; //Black Operations function BlackOperation(params={}) { @@ -26570,12 +26580,12 @@ function BlackOperation(params={}) { } BlackOperation.prototype = Object.create(Action.prototype); BlackOperation.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("BlackOperation", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("BlackOperation", this); } BlackOperation.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(BlackOperation, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(BlackOperation, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.BlackOperation = BlackOperation; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.BlackOperation = BlackOperation; var BlackOperations = {}; function Bladeburner(params={}) { @@ -26592,7 +26602,7 @@ function Bladeburner(params={}) { this.storedCycles = 0; - this.randomEventCounter = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 600); //5-10 minutes + this.randomEventCounter = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 600); //5-10 minutes //These times are in seconds this.actionTimeToComplete = 0; //0 or -1 is an infinite running action (like training) @@ -26606,7 +26616,7 @@ function Bladeburner(params={}) { for (var i = 0; i < CityNames.length; ++i) { this.cities[CityNames[i]] = new City({name:CityNames[i]}); } - this.city = _Location_js__WEBPACK_IMPORTED_MODULE_5__["Locations"].Sector12; + this.city = _Location__WEBPACK_IMPORTED_MODULE_5__["Locations"].Sector12; //Map of SkillNames -> level this.skills = {}; @@ -26652,9 +26662,9 @@ function Bladeburner(params={}) { Bladeburner.prototype.prestige = function() { this.resetAction(); - var bladeburnerFac = _Faction_js__WEBPACK_IMPORTED_MODULE_4__["Factions"]["Bladeburners"]; + var bladeburnerFac = _Faction__WEBPACK_IMPORTED_MODULE_4__["Factions"]["Bladeburners"]; if (this.rank >= RankNeededForFaction) { - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["joinFaction"])(bladeburnerFac); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["joinFaction"])(bladeburnerFac); } } @@ -26667,7 +26677,7 @@ Bladeburner.prototype.create = function() { "whatever city you are currently in.", baseDifficulty:125,difficultyFac:1.02,rewardFac:1.041, rankGain:0.3, hpLoss:0.5, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 800), countGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 5), + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 800), countGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 5), weights:{hack:0,str:0.05,def:0.05,dex:0.35,agi:0.35,cha:0.1, int:0.05}, decays:{hack:0,str:0.91,def:0.91,dex:0.91,agi:0.91,cha:0.9, int:1}, isStealth:true @@ -26679,7 +26689,7 @@ Bladeburner.prototype.create = function() { "current city, and will also increase its chaos level.", baseDifficulty:250, difficultyFac:1.04,rewardFac:1.085, rankGain:0.9, hpLoss:1, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(200, 750), countGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 3), + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(200, 750), countGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 3), weights:{hack:0,str:0.15,def:0.15,dex:0.25,agi:0.25,cha:0.1, int:0.1}, decays:{hack:0,str:0.91,def:0.91,dex:0.91,agi:0.91,cha:0.8, int:0.9}, isKill:true @@ -26691,7 +26701,7 @@ Bladeburner.prototype.create = function() { "city, and will also increase its chaos level.", baseDifficulty:200, difficultyFac:1.03, rewardFac:1.065, rankGain:0.6, hpLoss:1, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 900), countGrowth:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1,4), + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 900), countGrowth:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1,4), weights:{hack:0,str:0.2,def:0.2,dex:0.2,agi:0.2,cha:0.1, int:0.1}, decays:{hack:0,str:0.91,def:0.91,dex:0.91,agi:0.91,cha:0.8, int:0.9}, isKill:true @@ -26706,7 +26716,7 @@ Bladeburner.prototype.create = function() { "You will NOT lose HP from failed Investigation ops.", baseDifficulty:400, difficultyFac:1.03,rewardFac:1.07,reqdRank:25, rankGain:2, rankLoss:0.2, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(50, 400), countGrowth:1, + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(50, 400), countGrowth:1, weights:{hack:0.25,str:0.05,def:0.05,dex:0.2,agi:0.1,cha:0.25, int:0.1}, decays:{hack:0.85,str:0.9,def:0.9,dex:0.9,agi:0.9,cha:0.7, int:0.9}, isStealth:true @@ -26719,7 +26729,7 @@ Bladeburner.prototype.create = function() { "data.", baseDifficulty:500, difficultyFac:1.04, rewardFac:1.09, reqdRank:100, rankGain:4, rankLoss:0.4, hpLoss:2, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(50, 300), countGrowth:1, + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(50, 300), countGrowth:1, weights:{hack:0.2,str:0.05,def:0.05,dex:0.2,agi:0.2,cha:0.2, int:0.1}, decays:{hack:0.8,str:0.9,def:0.9,dex:0.9,agi:0.9,cha:0.7, int:0.9}, isStealth:true @@ -26730,7 +26740,7 @@ Bladeburner.prototype.create = function() { "notorious Synthoid criminals.", baseDifficulty:650, difficultyFac:1.04, rewardFac:1.095, reqdRank:500, rankGain:5, rankLoss:0.5, hpLoss:2.5, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25,400), countGrowth:0.75, + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25,400), countGrowth:0.75, weights:{hack:0.25,str:0.05,def:0.05,dex:0.25,agi:0.1,cha:0.2, int:0.1}, decays:{hack:0.8,str:0.85,def:0.85,dex:0.85,agi:0.85,cha:0.7, int:0.9}, isStealth:true @@ -26742,7 +26752,7 @@ Bladeburner.prototype.create = function() { "in order for this Operation to be successful", baseDifficulty:800, difficultyFac:1.045, rewardFac:1.1, reqdRank:3000, rankGain:50,rankLoss:2.5,hpLoss:50, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25, 150), countGrowth:0.2, + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25, 150), countGrowth:0.2, weights:{hack:0.1,str:0.2,def:0.2,dex:0.2,agi:0.2,cha:0, int:0.1}, decays:{hack:0.7,str:0.8,def:0.8,dex:0.8,agi:0.8,cha:0, int:0.9}, isKill:true @@ -26754,7 +26764,7 @@ Bladeburner.prototype.create = function() { "drawing any attention. Stealth and discretion are key.", baseDifficulty:1000, difficultyFac:1.05, rewardFac:1.11, reqdRank:20e3, rankGain:20, rankLoss:2, hpLoss:10, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25, 250), countGrowth:0.1, + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25, 250), countGrowth:0.1, weights:{hack:0.1,str:0.1,def:0.1,dex:0.3,agi:0.3,cha:0, int:0.1}, decays:{hack:0.7,str:0.8,def:0.8,dex:0.8,agi:0.8,cha:0, int:0.9}, isStealth:true, isKill:true @@ -26766,7 +26776,7 @@ Bladeburner.prototype.create = function() { "in the Synthoid communities.", baseDifficulty:1500, difficultyFac:1.06, rewardFac:1.14, reqdRank:50e3, rankGain:40, rankLoss:4, hpLoss:5, - count:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25, 200), countGrowth:0.1, + count:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(25, 200), countGrowth:0.1, weights:{hack:0.1,str:0.1,def:0.1,dex:0.3,agi:0.3,cha:0, int:0.1}, decays:{hack:0.6,str:0.8,def:0.8,dex:0.8,agi:0.8,cha:0, int:0.8}, isStealth:true, isKill:true @@ -26779,14 +26789,14 @@ Bladeburner.prototype.storeCycles = function(numCycles=1) { Bladeburner.prototype.process = function() { //Extreme condition...if Operation Daedalus is complete trigger the BitNode - if (_RedPill_js__WEBPACK_IMPORTED_MODULE_7__["redPillFlag"] === false && this.blackops.hasOwnProperty("Operation Daedalus")) { - return Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_7__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN); + if (_RedPill__WEBPACK_IMPORTED_MODULE_7__["redPillFlag"] === false && this.blackops.hasOwnProperty("Operation Daedalus")) { + return Object(_RedPill__WEBPACK_IMPORTED_MODULE_7__["hackWorldDaemon"])(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN); } //If the Player starts doing some other actions, set action to idle and alert - if (_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].BladesSimulacrum].owned === false && _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].isWorking) { + if (_Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].BladesSimulacrum].owned === false && _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].isWorking) { if (this.action.type !== ActionTypes["Idle"]) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Your Bladeburner action was cancelled because you started " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Your Bladeburner action was cancelled because you started " + "doing something else"); } this.resetAction(); @@ -26829,7 +26839,7 @@ Bladeburner.prototype.process = function() { this.randomEventCounter -= seconds; if (this.randomEventCounter <= 0) { this.randomEvent(); - this.randomEventCounter = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 600); + this.randomEventCounter = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(300, 600); } this.processAction(seconds); @@ -26849,26 +26859,26 @@ Bladeburner.prototype.process = function() { } } - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { this.updateContent(); } } } Bladeburner.prototype.calculateMaxStamina = function() { - var effAgility = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility * this.skillMultipliers.effAgi; + var effAgility = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility * this.skillMultipliers.effAgi; var maxStamina = (Math.pow(effAgility, 0.8) + this.staminaBonus); maxStamina *= this.skillMultipliers.stamina; - maxStamina *= _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult; + maxStamina *= _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult; if (isNaN(maxStamina)) {throw new Error("Max Stamina calculated to be NaN in Bladeburner.calculateMaxStamina()");} this.maxStamina = maxStamina; } Bladeburner.prototype.calculateStaminaGainPerSecond = function() { - var effAgility = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility * this.skillMultipliers.effAgi; + var effAgility = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility * this.skillMultipliers.effAgi; var maxStaminaBonus = this.maxStamina / MaxStaminaToGainFactor; var gain = (StaminaGainPerSecond + maxStaminaBonus) * Math.pow(effAgility, 0.17); - return gain * (this.skillMultipliers.stamina * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult); + return gain * (this.skillMultipliers.stamina * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult); } Bladeburner.prototype.calculateStaminaPenalty = function() { @@ -26882,14 +26892,14 @@ Bladeburner.prototype.changeRank = function(change) { this.maxRank = Math.max(this.rank, this.maxRank); var bladeburnersFactionName = "Bladeburners"; - if (Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["factionExists"])(bladeburnersFactionName)) { - var bladeburnerFac = _Faction_js__WEBPACK_IMPORTED_MODULE_4__["Factions"][bladeburnersFactionName]; - if (!(bladeburnerFac instanceof _Faction_js__WEBPACK_IMPORTED_MODULE_4__["Faction"])) { + if (Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["factionExists"])(bladeburnersFactionName)) { + var bladeburnerFac = _Faction__WEBPACK_IMPORTED_MODULE_4__["Factions"][bladeburnersFactionName]; + if (!(bladeburnerFac instanceof _Faction__WEBPACK_IMPORTED_MODULE_4__["Faction"])) { throw new Error("Could not properly get Bladeburner Faction object in Bladeburner UI Overview Faction button"); } if (bladeburnerFac.isMember) { var favorBonus = 1 + (bladeburnerFac.favor / 100); - bladeburnerFac.playerReputation += (RankToFactionRepFactor * change * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult * favorBonus); + bladeburnerFac.playerReputation += (RankToFactionRepFactor * change * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].faction_rep_mult * favorBonus); } } @@ -27017,7 +27027,7 @@ Bladeburner.prototype.startAction = function(actionId) { if (action.count < 1) {return this.resetAction();} this.actionTimeToComplete = action.getActionTime(this); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); } break; case ActionTypes["Operation"]: @@ -27029,7 +27039,7 @@ Bladeburner.prototype.startAction = function(actionId) { if (action.count < 1) {return this.resetAction();} this.actionTimeToComplete = action.getActionTime(this); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); } break; case ActionTypes["BlackOp"]: @@ -27041,7 +27051,7 @@ Bladeburner.prototype.startAction = function(actionId) { } this.actionTimeToComplete = action.getActionTime(this); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); } break; case ActionTypes["Training"]: @@ -27104,7 +27114,7 @@ Bladeburner.prototype.completeAction = function() { var moneyGain = 0; if (!isOperation) { moneyGain = ContractBaseMoneyGain * rewardMultiplier; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainMoney(moneyGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainMoney(moneyGain); } if (isOperation) { @@ -27113,7 +27123,7 @@ Bladeburner.prototype.completeAction = function() { action.setMaxLevel(ContractSuccessesPerLevel); } if (action.rankGain) { - var gain = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankGain * rewardMultiplier * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].BladeburnerRank, 10); + var gain = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankGain * rewardMultiplier * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].BladeburnerRank, 10); this.changeRank(gain); if (isOperation && this.logging.ops) { this.log(action.name + " successfully completed! Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(gain, 3) + " rank"); @@ -27127,16 +27137,16 @@ Bladeburner.prototype.completeAction = function() { ++action.failures; var loss = 0, damage = 0; if (action.rankLoss) { - loss = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankLoss * rewardMultiplier, 10); + loss = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankLoss * rewardMultiplier, 10); this.changeRank(-1 * loss); } if (action.hpLoss) { damage = action.hpLoss * difficultyMultiplier; - damage = Math.ceil(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(damage, 10)); + damage = Math.ceil(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(damage, 10)); this.hpLost += damage; - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].takeDamage(damage)) { + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].takeDamage(damage)) { ++this.numHosp; - this.moneyLost += (_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].HospitalCostPerHp * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].max_hp); + this.moneyLost += (_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].HospitalCostPerHp * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].max_hp); } } var logLossText = ""; @@ -27152,7 +27162,7 @@ Bladeburner.prototype.completeAction = function() { if (action.autoLevel) {action.level = action.maxLevel;} //Autolevel this.startAction(this.action); //Repeat action } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); } break; case ActionTypes["BlackOp"]: @@ -27178,7 +27188,7 @@ Bladeburner.prototype.completeAction = function() { this.blackops[action.name] = true; var rankGain = 0; if (action.rankGain) { - rankGain = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankGain * _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].BladeburnerRank, 10); + rankGain = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankGain * _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodeMultipliers"].BladeburnerRank, 10); this.changeRank(rankGain); } teamLossMax = Math.ceil(teamCount/2); @@ -27186,10 +27196,10 @@ Bladeburner.prototype.completeAction = function() { //Operation Daedalus if (action.name === "Operation Daedalus") { this.resetAction(); - return Object(_RedPill_js__WEBPACK_IMPORTED_MODULE_7__["hackWorldDaemon"])(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN); + return Object(_RedPill__WEBPACK_IMPORTED_MODULE_7__["hackWorldDaemon"])(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bitNodeN); } - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { this.createActionAndSkillsContent(); } @@ -27200,15 +27210,15 @@ Bladeburner.prototype.completeAction = function() { this.gainActionStats(action, false); var rankLoss = 0, damage = 0; if (action.rankLoss) { - rankLoss = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankLoss, 10); + rankLoss = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(action.rankLoss, 10); this.changeRank(-1 * rankLoss); } if (action.hpLoss) { damage = action.hpLoss * difficultyMultiplier; - damage = Math.ceil(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(damage, 10)); - if (_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].takeDamage(damage)) { + damage = Math.ceil(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["addOffset"])(damage, 10)); + if (_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].takeDamage(damage)) { ++this.numHosp; - this.moneyLost += (_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].HospitalCostPerHp * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].max_hp); + this.moneyLost += (_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].HospitalCostPerHp * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].max_hp); } } teamLossMax = Math.floor(teamCount); @@ -27222,7 +27232,7 @@ Bladeburner.prototype.completeAction = function() { //Calculate team lossses if (teamCount >= 1) { - var losses = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, teamLossMax); + var losses = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, teamLossMax); this.teamSize -= losses; this.teamLost += losses; if (this.logging.blackops) { @@ -27230,20 +27240,20 @@ Bladeburner.prototype.completeAction = function() { } } } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); } break; case ActionTypes["Training"]: this.stamina -= (0.5 * BaseStaminaLoss); - var strExpGain = 30 * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult, - defExpGain = 30 * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult, - dexExpGain = 30 * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult, - agiExpGain = 30 * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult, + var strExpGain = 30 * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult, + defExpGain = 30 * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult, + dexExpGain = 30 * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult, + agiExpGain = 30 * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult, staminaGain = 0.04 * this.skillMultipliers.stamina; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainStrengthExp(strExpGain); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDefenseExp(defExpGain); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDexterityExp(dexExpGain); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainAgilityExp(agiExpGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainStrengthExp(strExpGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDefenseExp(defExpGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDexterityExp(dexExpGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainAgilityExp(agiExpGain); this.staminaBonus += (staminaGain); if (this.logging.general) { this.log("Training completed. Gained: " + @@ -27258,18 +27268,18 @@ Bladeburner.prototype.completeAction = function() { case ActionTypes["FieldAnalysis"]: case ActionTypes["Field Analysis"]: //Does not use stamina. Effectiveness depends on hacking, int, and cha - var eff = 0.04 * Math.pow(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_skill, 0.3) + - 0.04 * Math.pow(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].intelligence, 0.9) + - 0.02 * Math.pow(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma, 0.3); - eff *= _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult; + var eff = 0.04 * Math.pow(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_skill, 0.3) + + 0.04 * Math.pow(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].intelligence, 0.9) + + 0.02 * Math.pow(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma, 0.3); + eff *= _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult; if (isNaN(eff) || eff < 0) { throw new Error("Field Analysis Effectiveness calculated to be NaN or negative"); } - var hackingExpGain = 20 * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult, - charismaExpGain = 20 * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainHackingExp(hackingExpGain); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainIntelligenceExp(BaseIntGain); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(charismaExpGain); + var hackingExpGain = 20 * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult, + charismaExpGain = 20 * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult; + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainHackingExp(hackingExpGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainIntelligenceExp(BaseIntGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(charismaExpGain); this.changeRank(0.1); console.log("DEBUG: Field Analysis effectiveness is " + (eff * this.skillMultipliers.successChanceEstimate)); this.getCurrentCity().improvePopulationEstimateByPercentage(eff * this.skillMultipliers.successChanceEstimate); @@ -27283,14 +27293,14 @@ Bladeburner.prototype.completeAction = function() { console.log("Bladeburner recruitment success chance: " + successChance); if (Math.random() < successChance) { var expGain = 2 * BaseStatGain * this.actionTimeToComplete; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(expGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(expGain); ++this.teamSize; if (this.logging.general) { this.log("Successfully recruited a team member! Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(expGain, 1) + " charisma exp"); } } else { var expGain = BaseStatGain * this.actionTimeToComplete; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(expGain); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(expGain); if (this.logging.general) { this.log("Failed to recruit a team member. Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(expGain, 1) + " charisma exp"); } @@ -27311,7 +27321,7 @@ Bladeburner.prototype.completeContract = function(success) { switch (this.action.name) { case "Tracking": //Increase estimate accuracy by a relatively small amount - city.improvePopulationEstimateByCount(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(100, 1e3)); + city.improvePopulationEstimateByCount(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(100, 1e3)); break; case "Bounty Hunter": city.changePopulationByCount(-1, {estChange:-1}); @@ -27344,7 +27354,7 @@ Bladeburner.prototype.completeOperation = function(success) { } else { max = Math.floor(teamCount) } - var losses = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, max); + var losses = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, max); this.teamSize -= losses; this.teamLost += losses; if (this.logging.ops && losses > 0) { @@ -27393,22 +27403,22 @@ Bladeburner.prototype.completeOperation = function(success) { --city.comms; --city.commsEst; } else { - var change = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-3, -1); + var change = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-3, -1); city.changePopulationByPercentage(change, {nonZero:true}); } - city.changeChaosByPercentage(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 5)); + city.changeChaosByPercentage(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(1, 5)); break; case "Stealth Retirement Operation": if (success) { city.changePopulationByPercentage(-0.5, {changeEstEqually:true,nonZero:true}); } - city.changeChaosByPercentage(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-3, -1)); + city.changeChaosByPercentage(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-3, -1)); break; case "Assassination": if (success) { city.changePopulationByCount(-1, {estChange:-1}); } - city.changeChaosByPercentage(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-5, 5)); + city.changeChaosByPercentage(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(-5, 5)); break; default: throw new Error("Invalid Action name in completeOperation: " + this.action.name); @@ -27416,13 +27426,13 @@ Bladeburner.prototype.completeOperation = function(success) { } Bladeburner.prototype.getRecruitmentTime = function() { - var effCharisma = _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma * this.skillMultipliers.effCha; + var effCharisma = _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma * this.skillMultipliers.effCha; var charismaFactor = Math.pow(effCharisma, 0.81) + effCharisma / 90; return Math.max(10, Math.round(BaseRecruitmentTimeNeeded - charismaFactor)); } Bladeburner.prototype.getRecruitmentSuccessChance = function() { - return Math.pow(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma, 0.45) / (this.teamSize + 1); + return Math.pow(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma, 0.45) / (this.teamSize + 1); } //Process stat gains from Contracts, Operations, and Black Operations @@ -27440,28 +27450,28 @@ Bladeburner.prototype.gainActionStats = function(action, success) { var unweightedGain = time * BaseStatGain * successMult * difficultyMult; var unweightedIntGain = time * BaseIntGain * successMult * difficultyMult; - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainHackingExp(unweightedGain * action.weights.hack * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainStrengthExp(unweightedGain * action.weights.str * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDefenseExp(unweightedGain * action.weights.def * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDexterityExp(unweightedGain * action.weights.dex * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainAgilityExp(unweightedGain * action.weights.agi * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(unweightedGain * action.weights.cha * _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult); - _Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].gainIntelligenceExp(unweightedIntGain * action.weights.int); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainHackingExp(unweightedGain * action.weights.hack * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].hacking_exp_mult); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainStrengthExp(unweightedGain * action.weights.str * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].strength_exp_mult); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDefenseExp(unweightedGain * action.weights.def * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].defense_exp_mult); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainDexterityExp(unweightedGain * action.weights.dex * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].dexterity_exp_mult); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainAgilityExp(unweightedGain * action.weights.agi * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].agility_exp_mult); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainCharismaExp(unweightedGain * action.weights.cha * _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].charisma_exp_mult); + _Player__WEBPACK_IMPORTED_MODULE_6__["Player"].gainIntelligenceExp(unweightedIntGain * action.weights.int); } Bladeburner.prototype.randomEvent = function() { var chance = Math.random(); //Choose random source/destination city for events - var sourceCityName = CityNames[Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; + var sourceCityName = CityNames[Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; var sourceCity = this.cities[sourceCityName]; if (!(sourceCity instanceof City)) { throw new Error("sourceCity was not a City object in Bladeburner.randomEvent()"); } - var destCityName = CityNames[Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; + var destCityName = CityNames[Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; while (destCityName === sourceCityName) { - destCityName = CityNames[Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; + destCityName = CityNames[Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; } var destCity = this.cities[destCityName]; @@ -27472,7 +27482,7 @@ Bladeburner.prototype.randomEvent = function() { if (chance <= 0.05) { //New Synthoid Community, 5% ++sourceCity.comms; - var percentage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(10, 20) / 100; + var percentage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(10, 20) / 100; var count = Math.round(sourceCity.pop * percentage); sourceCity.pop += count; if (this.logging.events) { @@ -27483,7 +27493,7 @@ Bladeburner.prototype.randomEvent = function() { if (sourceCity.comms <= 0) { //If no comms in source city, then instead trigger a new Synthoid community event ++sourceCity.comms; - var percentage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(10, 20) / 100; + var percentage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(10, 20) / 100; var count = Math.round(sourceCity.pop * percentage); sourceCity.pop += count; if (this.logging.events) { @@ -27494,7 +27504,7 @@ Bladeburner.prototype.randomEvent = function() { ++destCity.comms; //Change pop - var percentage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(10, 20) / 100; + var percentage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(10, 20) / 100; var count = Math.round(sourceCity.pop * percentage); sourceCity.pop -= count; destCity.pop += count; @@ -27505,7 +27515,7 @@ Bladeburner.prototype.randomEvent = function() { } } else if (chance <= 0.3) { //New Synthoids (non community), 20% - var percentage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(8, 24) / 100; + var percentage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(8, 24) / 100; var count = Math.round(sourceCity.pop * percentage); sourceCity.pop += count; if (this.logging.events) { @@ -27520,13 +27530,13 @@ Bladeburner.prototype.randomEvent = function() { } else if (chance <= 0.7) { //Synthoid Riots (+chaos), 20% sourceCity.chaos += 1; - sourceCity.chaos *= (1 + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(5, 10) / 100); + sourceCity.chaos *= (1 + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(5, 10) / 100); if (this.logging.events) { this.log("Tensions between Synthoids and humans lead to riots in " + sourceCityName + "! Chaos increased"); } } else if (chance <= 0.9) { //Less Synthoids, 20% - var percentage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(5, 20) / 100; + var percentage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(5, 20) / 100; var count = Math.round(sourceCity.pop * percentage); sourceCity.pop -= count; if (this.logging.events) { @@ -27545,19 +27555,19 @@ Bladeburner.prototype.triggerPotentialMigration = function(sourceCityName, chanc } Bladeburner.prototype.triggerMigration = function(sourceCityName) { - var destCityName = CityNames[Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; + var destCityName = CityNames[Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; while (destCityName === sourceCityName) { - destCityName = CityNames[Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; + destCityName = CityNames[Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(0, 5)]; } var destCity = this.cities[destCityName]; var sourceCity = this.cities[sourceCityName]; if (destCity == null || sourceCity == null) { throw new Error("Failed to find City with name: " + destCityName); } - var rand = Math.random(), percentage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(3, 15) / 100; + var rand = Math.random(), percentage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(3, 15) / 100; if (rand < 0.05 && sourceCity.comms > 0) { //5% chance for community migration - percentage *= Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(2, 4); //Migration increases population change + percentage *= Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["getRandomInt"])(2, 4); //Migration increases population change --sourceCity.comms; ++destCity.comms; } @@ -27614,21 +27624,21 @@ Bladeburner.prototype.initializeDomElementRefs = function() { } Bladeburner.prototype.createContent = function() { - DomElems.bladeburnerDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.bladeburnerDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { id:"bladeburner-container", position:"fixed", class:"generic-menupage-container", }); //Parent Div for Overview and Console - DomElems.overviewConsoleParentDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.overviewConsoleParentDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { height:"60%", display:"block", position:"relative", }); //Overview and Action/Skill pane - DomElems.overviewDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.overviewDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { width:"30%", display:"inline-block", border:"1px solid white", }); - DomElems.actionAndSkillsDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.actionAndSkillsDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { height:"60%", width:"70%", display:"block", border:"1px solid white", margin:"6px", padding:"6px", }); @@ -27639,7 +27649,7 @@ Bladeburner.prototype.createContent = function() { this.createActionAndSkillsContent(); //Console - DomElems.consoleDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.consoleDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { class:"bladeburner-console-div", clickListener:()=>{ if (DomElems.consoleInput instanceof Element) { @@ -27648,11 +27658,11 @@ Bladeburner.prototype.createContent = function() { return false; } }); - DomElems.consoleTable = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("table", {class:"bladeburner-console-table"}); - DomElems.consoleInputRow = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("tr", {class:"bladeburner-console-input-row", id:"bladeubrner-console-input-row"}); - DomElems.consoleInputCell = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("td", {class:"bladeburner-console-input-cell"}); - DomElems.consoleInputHeader = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", {innerText:"> "}); - DomElems.consoleInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + DomElems.consoleTable = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("table", {class:"bladeburner-console-table"}); + DomElems.consoleInputRow = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("tr", {class:"bladeburner-console-input-row", id:"bladeubrner-console-input-row"}); + DomElems.consoleInputCell = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("td", {class:"bladeburner-console-input-cell"}); + DomElems.consoleInputHeader = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", {innerText:"> "}); + DomElems.consoleInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { type:"text", class:"bladeburner-console-input", tabIndex:1, onfocus:()=>{DomElems.consoleInput.value = DomElems.consoleInput.value} }); @@ -27677,10 +27687,10 @@ Bladeburner.prototype.createContent = function() { Bladeburner.prototype.clearContent = function() { if (DomElems.bladeburnerDiv instanceof Element) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.bladeburnerDiv); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElement"])(DomElems.bladeburnerDiv); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.bladeburnerDiv); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElement"])(DomElems.bladeburnerDiv); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems); this.initializeDomElementRefs(); } @@ -27689,20 +27699,20 @@ Bladeburner.prototype.createOverviewContent = function() { throw new Error("Bladeburner.createOverviewContent() called with DomElems.overviewDiv = null"); } - DomElems.overviewRank = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.overviewRank = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerText:"Rank: ", display:"inline-block", tooltip:"Your rank within the Bladeburner division", }); - DomElems.overviewStamina = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.overviewStamina = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"inline-block", }); - DomElems.overviewStaminaHelpTip = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.overviewStaminaHelpTip = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { innerText:"?", class:"help-tip", clickListener:()=>{ - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Performing actions will use up your stamina.

" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Performing actions will use up your stamina.

" + "Your max stamina is determined primarily by your agility stat.

" + "Your stamina gain rate is determined by both your agility and your " + "max stamina. Higher max stamina leads to a higher gain rate.

" + @@ -27716,21 +27726,21 @@ Bladeburner.prototype.createOverviewContent = function() { } }); - DomElems.overviewGen1 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.overviewGen1 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", }); - DomElems.overviewEstPop = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.overviewEstPop = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerText:"Est. Synthoid Population: ", display:"inline-block", tooltip:"This is your Bladeburner division's estimate of how many Synthoids exist " + "in your current city." }); - DomElems.overviewEstPopHelpTip = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.overviewEstPopHelpTip = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { innerText:"?", class:"help-tip", clickListener:()=>{ - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("The success rate of your contracts/operations depends on " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("The success rate of your contracts/operations depends on " + "the population of Synthoids in your current city. " + "The success rate that is shown to you is only an estimate, " + "and it is based on your Synthoid population estimate.

" + @@ -27745,61 +27755,61 @@ Bladeburner.prototype.createOverviewContent = function() { } }); - DomElems.overviewEstComms = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.overviewEstComms = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerText:"Est. Synthoid Communities: ", display:"inline-block", tooltip:"This is your Bladeburner divison's estimate of how many Synthoid " + "communities exist in your current city.", }); - DomElems.overviewChaos = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.overviewChaos = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerText:"City Chaos: ", display:"inline-block", tooltip:"The city's chaos level due to tensions and conflicts between humans and Synthoids. " + "Having too high of a chaos level can make contracts and operations harder." }); - DomElems.overviewSkillPoints = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); + DomElems.overviewSkillPoints = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); - DomElems.overviewAugSuccessMult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); - DomElems.overviewAugMaxStaminaMult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); - DomElems.overviewAugStaminaGainMult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); - DomElems.overviewAugAnalysisMult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); + DomElems.overviewAugSuccessMult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); + DomElems.overviewAugMaxStaminaMult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); + DomElems.overviewAugStaminaGainMult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); + DomElems.overviewAugAnalysisMult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", {display:"block"}); DomElems.overviewDiv.appendChild(DomElems.overviewRank); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); DomElems.overviewDiv.appendChild(DomElems.overviewStamina); DomElems.overviewDiv.appendChild(DomElems.overviewStaminaHelpTip); DomElems.overviewDiv.appendChild(DomElems.overviewGen1); DomElems.overviewDiv.appendChild(DomElems.overviewEstPop); DomElems.overviewDiv.appendChild(DomElems.overviewEstPopHelpTip); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); DomElems.overviewDiv.appendChild(DomElems.overviewEstComms); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); DomElems.overviewDiv.appendChild(DomElems.overviewChaos); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 2); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 2); DomElems.overviewDiv.appendChild(DomElems.overviewSkillPoints); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); DomElems.overviewDiv.appendChild(DomElems.overviewAugSuccessMult); DomElems.overviewDiv.appendChild(DomElems.overviewAugMaxStaminaMult); DomElems.overviewDiv.appendChild(DomElems.overviewAugStaminaGainMult); DomElems.overviewDiv.appendChild(DomElems.overviewAugAnalysisMult); //Travel to new city button - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); - DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(DomElems.overviewDiv, 1); + DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerHTML:"Travel", class:"a-link-button", display:"inline-block", clickListener:()=>{ var popupId = "bladeburner-travel-popup-cancel-btn"; var popupArguments = []; - popupArguments.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Cancel Button + popupArguments.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Cancel Button innerText:"Cancel", class:"a-link-button", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); return false; + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); return false; } })) - popupArguments.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { //Info Text + popupArguments.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { //Info Text innerText:"Travel to a different city for your Bladeburner " + "activities. This does not cost any money. The city you are " + "in for your Bladeburner duties does not affect " + @@ -27807,46 +27817,46 @@ Bladeburner.prototype.createOverviewContent = function() { })); for (var i = 0; i < CityNames.length; ++i) { (function(inst, i) { - popupArguments.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + popupArguments.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { //Reusing this css class...it adds a border and makes it //so that background color changes when you hover class:"cmpy-mgmt-find-employee-option", innerText:CityNames[i], clickListener:()=>{ inst.city = CityNames[i]; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); inst.updateOverviewContent(); return false; } })); })(this, i); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createPopup"])(popupId, popupArguments); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createPopup"])(popupId, popupArguments); } })); //Faction button const bladeburnersFactionName = "Bladeburners"; - if (Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["factionExists"])(bladeburnersFactionName)) { - var bladeburnerFac = _Faction_js__WEBPACK_IMPORTED_MODULE_4__["Factions"][bladeburnersFactionName]; - if (!(bladeburnerFac instanceof _Faction_js__WEBPACK_IMPORTED_MODULE_4__["Faction"])) { + if (Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["factionExists"])(bladeburnersFactionName)) { + var bladeburnerFac = _Faction__WEBPACK_IMPORTED_MODULE_4__["Factions"][bladeburnersFactionName]; + if (!(bladeburnerFac instanceof _Faction__WEBPACK_IMPORTED_MODULE_4__["Faction"])) { throw new Error("Could not properly get Bladeburner Faction object in Bladeburner UI Overview Faction button"); } - DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Faction", class:"a-link-button", display:"inline-block", tooltip:"Apply to the Bladeburner Faction, or go to the faction page if you are already a member", clickListener:()=>{ if (bladeburnerFac.isMember) { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadFactionContent(); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["displayFactionContent"])(bladeburnersFactionName); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].loadFactionContent(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["displayFactionContent"])(bladeburnersFactionName); } else { if (this.rank >= RankNeededForFaction) { - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["joinFaction"])(bladeburnerFac); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Congratulations! You were accepted into the Bladeburners faction"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.overviewDiv); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["joinFaction"])(bladeburnerFac); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Congratulations! You were accepted into the Bladeburners faction"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.overviewDiv); this.createOverviewContent(); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You need a rank of 25 to join the Bladeburners Faction!") + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("You need a rank of 25 to join the Bladeburners Faction!") } } return false; @@ -27854,8 +27864,8 @@ Bladeburner.prototype.createOverviewContent = function() { })); } - DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); - DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); + DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); + DomElems.overviewDiv.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); this.updateOverviewContent(); } @@ -27863,12 +27873,12 @@ Bladeburner.prototype.createOverviewContent = function() { Bladeburner.prototype.createActionAndSkillsContent = function() { if (DomElems.currentTab == null) {DomElems.currentTab = "general";} - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.actionAndSkillsDiv); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.generalActions); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.contracts); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.operations); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.blackops); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.skills); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.actionAndSkillsDiv); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.generalActions); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.contracts); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.operations); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.blackops); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["clearObject"])(DomElems.skills); //Navigation buttons var currTab = DomElems.currentTab.toLowerCase(); @@ -27876,7 +27886,7 @@ Bladeburner.prototype.createActionAndSkillsContent = function() { for (var i = 0; i < buttons.length; ++i) { (function(buttons, i, inst, currTab) { - DomElems.actionAndSkillsDiv.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + DomElems.actionAndSkillsDiv.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:buttons[i], class:currTab === buttons[i].toLowerCase() ? "bladeburner-nav-button-inactive" : "bladeburner-nav-button", clickListener:()=>{ @@ -27889,13 +27899,13 @@ Bladeburner.prototype.createActionAndSkillsContent = function() { } //General info/description for each action - DomElems.actionsAndSkillsDesc = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.actionsAndSkillsDesc = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", margin:"4px", padding:"4px" }); //List for actions/skills - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.actionsAndSkillsList); - DomElems.actionsAndSkillsList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("ul"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.actionsAndSkillsList); + DomElems.actionsAndSkillsList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("ul"); switch(currTab) { case "general": @@ -27934,7 +27944,7 @@ Bladeburner.prototype.createGeneralActionsContent = function() { for (var actionName in GeneralActions) { if (GeneralActions.hasOwnProperty(actionName)) { - DomElems.generalActions[actionName] = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.generalActions[actionName] = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { class:"bladeburner-action", name:actionName }); DomElems.actionsAndSkillsList.appendChild(DomElems.generalActions[actionName]); @@ -27956,7 +27966,7 @@ Bladeburner.prototype.createContractsContent = function() { for (var contractName in this.contracts) { if (this.contracts.hasOwnProperty(contractName)) { - DomElems.contracts[contractName] = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.contracts[contractName] = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { class:"bladeburner-action", name:contractName }); DomElems.actionsAndSkillsList.appendChild(DomElems.contracts[contractName]); @@ -27985,7 +27995,7 @@ Bladeburner.prototype.createOperationsContent = function() { for (var operationName in this.operations) { if (this.operations.hasOwnProperty(operationName)) { - DomElems.operations[operationName] = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.operations[operationName] = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { class:"bladeburner-action", name:operationName }); DomElems.actionsAndSkillsList.appendChild(DomElems.operations[operationName]); @@ -28018,7 +28028,7 @@ Bladeburner.prototype.createBlackOpsContent = function() { }); for (var i = 0; i < blackops.length; ++i) { - DomElems.blackops[blackops[i].name] = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.blackops[blackops[i].name] = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { class:"bladeburner-action", name:blackops[i].name }); DomElems.actionsAndSkillsList.appendChild(DomElems.blackops[blackops[i].name]); @@ -28102,7 +28112,7 @@ Bladeburner.prototype.createSkillsContent = function() { } //Skill Points - DomElems.skillPointsDisplay = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + DomElems.skillPointsDisplay = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerHTML:"
Skill Points: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.skillPoints, 0) + "" }); DomElems.actionAndSkillsDiv.appendChild(DomElems.skillPointsDisplay); @@ -28110,7 +28120,7 @@ Bladeburner.prototype.createSkillsContent = function() { //UI Element for each skill for (var skillName in Skills) { if (Skills.hasOwnProperty(skillName)) { - DomElems.skills[skillName] = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { + DomElems.skills[skillName] = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("div", { class:"bladeburner-action", name:skillName }); DomElems.actionsAndSkillsList.appendChild(DomElems.skills[skillName]); @@ -28124,7 +28134,7 @@ Bladeburner.prototype.updateContent = function() { } Bladeburner.prototype.updateOverviewContent = function() { - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage !== _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) {return;} + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage !== _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) {return;} DomElems.overviewRank.childNodes[0].nodeValue = "Rank: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.rank, 2); DomElems.overviewStamina.innerText = "Stamina: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.stamina, 3) + " / " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.maxStamina, 3); DomElems.overviewGen1.innerHTML = @@ -28139,10 +28149,10 @@ Bladeburner.prototype.updateOverviewContent = function() { DomElems.overviewEstComms.childNodes[0].nodeValue = "Est. Synthoid Communities: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.getCurrentCity().comms, 0); DomElems.overviewChaos.childNodes[0].nodeValue = "City Chaos: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.getCurrentCity().chaos); DomElems.overviewSkillPoints.innerText = "Skill Points: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.skillPoints, 0); - DomElems.overviewAugSuccessMult.innerText = "Aug. Success Chance Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult*100, 1) + "%"; - DomElems.overviewAugMaxStaminaMult.innerText = "Aug. Max Stamina Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult*100, 1) + "%"; - DomElems.overviewAugStaminaGainMult.innerText = "Aug. Stamina Gain Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult*100, 1) + "%"; - DomElems.overviewAugAnalysisMult.innerText = "Aug. Field Analysis Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult*100, 1) + "%"; + DomElems.overviewAugSuccessMult.innerText = "Aug. Success Chance Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_success_chance_mult*100, 1) + "%"; + DomElems.overviewAugMaxStaminaMult.innerText = "Aug. Max Stamina Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_max_stamina_mult*100, 1) + "%"; + DomElems.overviewAugStaminaGainMult.innerText = "Aug. Stamina Gain Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_stamina_gain_mult*100, 1) + "%"; + DomElems.overviewAugAnalysisMult.innerText = "Aug. Field Analysis Mult: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_6__["Player"].bladeburner_analysis_mult*100, 1) + "%"; } Bladeburner.prototype.updateActionAndSkillsContent = function() { @@ -28236,10 +28246,10 @@ Bladeburner.prototype.updateActionAndSkillsContent = function() { } Bladeburner.prototype.updateGeneralActionsUIElement = function(el, action) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); var isActive = el.classList.contains(ActiveActionCssClass); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header innerText:isActive ? action.name + " (IN PROGRESS - " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeCurrent, 0) + " / " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeToComplete, 0) + ")" @@ -28249,13 +28259,13 @@ Bladeburner.prototype.updateGeneralActionsUIElement = function(el, action) { if (isActive) { //Progress bar if its active var progress = this.actionTimeCurrent / this.actionTimeToComplete; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", - innerText:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) + innerText:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) })); } else { //Start button - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Start", class: "a-link-button", margin:"3px", padding:"3px", clickListener:()=>{ @@ -28268,8 +28278,8 @@ Bladeburner.prototype.updateGeneralActionsUIElement = function(el, action) { })); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { //Info + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { //Info innerHTML:action.desc, display:"inline-block" })); @@ -28277,11 +28287,11 @@ Bladeburner.prototype.updateGeneralActionsUIElement = function(el, action) { } Bladeburner.prototype.updateContractsUIElement = function(el, action) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); var isActive = el.classList.contains(ActiveActionCssClass); var estimatedSuccessChance = action.getSuccessChance(this, {est:true}); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header innerText:isActive ? action.name + " (IN PROGRESS - " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeCurrent, 0) + " / " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeToComplete, 0) + ")" @@ -28291,12 +28301,12 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { if (isActive) { //Progress bar if its active var progress = this.actionTimeCurrent / this.actionTimeToComplete; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", - innerText:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) + innerText:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) })); } else { //Start button - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Start", class: "a-link-button", padding:"3px", margin:"3px", clickListener:()=>{ @@ -28311,14 +28321,14 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { //Level and buttons to change level var maxLevel = (action.level >= action.maxLevel); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { display:"inline-block", innerText:"Level: " + action.level + " / " + action.maxLevel, tooltip:action.getSuccessesNeededForNextLevel(ContractSuccessesPerLevel) + " successes " + "needed for next level" })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { class: maxLevel ? "a-link-button-inactive" : "a-link-button", innerHTML:"↑", padding:"2px", margin:"2px", tooltip: isActive ? "WARNING: changing the level will restart the contract" : "", @@ -28330,7 +28340,7 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { return false; } })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { class: (action.level <= 1) ? "a-link-button-inactive" : "a-link-button", innerHTML:"↓", padding:"2px", margin:"2px", tooltip: isActive ? "WARNING: changing the level will restart the contract" : "", @@ -28344,8 +28354,8 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { })); var actionTime = action.getActionTime(this); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { //Info + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { //Info display:"inline-block", innerHTML:action.desc + "\n\n" + "Estimated success chance: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(estimatedSuccessChance*100, 1) + "%\n" + @@ -28356,13 +28366,13 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { })); //Autolevel Checkbox - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); var autolevelCheckboxId = "bladeburner-" + action.name + "-autolevel-checkbox"; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("label", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("label", { for:autolevelCheckboxId, innerText:"Autolevel",color:"white", tooltip:"Automatically increase contract level when possible" })); - var autolevelCheckbox = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var autolevelCheckbox = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { type:"checkbox", id:autolevelCheckboxId, margin:"4px", checked:action.autoLevel, changeListener:()=>{ @@ -28373,10 +28383,10 @@ Bladeburner.prototype.updateContractsUIElement = function(el, action) { } Bladeburner.prototype.updateOperationsUIElement = function(el, action) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); var isActive = el.classList.contains(ActiveActionCssClass); var estimatedSuccessChance = action.getSuccessChance(this, {est:true}); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header innerText:isActive ? action.name + " (IN PROGRESS - " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeCurrent, 0) + " / " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeToComplete, 0) + ")" @@ -28386,12 +28396,12 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { if (isActive) { //Progress bar if its active var progress = this.actionTimeCurrent / this.actionTimeToComplete; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", - innerText:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) + innerText:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) })); } else { //Start button and set Team Size button - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Start", class: "a-link-button", margin:"3px", padding:"3px", clickListener:()=>{ @@ -28402,57 +28412,57 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { return false; } })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Set Team Size (Curr Size: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(action.teamCount, 0) + ")", class:"a-link-button", margin:"3px", padding:"3px", clickListener:()=>{ var popupId = "bladeburner-operation-set-team-size-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerText:"Enter the amount of team members you would like to take on these " + "operations. If you do not have the specified number of team members, " + "then as many as possible will be used. Note that team members may " + "be lost during operations." }); - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { type:"number", placeholder: "Team Members" }); - var setBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var setBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", clickListener:()=>{ var num = Math.round(parseFloat(input.value)); if (isNaN(num)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Invalid value entered for number of Team Members (must be numeric)") + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Invalid value entered for number of Team Members (must be numeric)") } else { action.teamCount = num; this.updateOperationsUIElement(el, action); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createPopup"])(popupId, [txt, input, setBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createPopup"])(popupId, [txt, input, setBtn, cancelBtn]); } })); } //Level and buttons to change level var maxLevel = (action.level >= action.maxLevel); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { display:"inline-block", innerText:"Level: " + action.level + " / " + action.maxLevel, tooltip:action.getSuccessesNeededForNextLevel(OperationSuccessesPerLevel) + " successes " + "needed for next level" })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { class: maxLevel ? "a-link-button-inactive" : "a-link-button", innerHTML:"↑", padding:"2px", margin:"2px", tooltip: isActive ? "WARNING: changing the level will restart the Operation" : "", @@ -28464,7 +28474,7 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { return false; } })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { class: (action.level <= 1) ? "a-link-button-inactive" : "a-link-button", innerHTML:"↓", padding:"2px", margin:"2px", tooltip: isActive ? "WARNING: changing the level will restart the Operation" : "", @@ -28480,8 +28490,8 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { //General Info var difficulty = action.getDifficulty(); var actionTime = action.getActionTime(this); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("pre", { display:"inline-block", innerHTML:action.desc + "\n\n" + "Estimated success chance: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(estimatedSuccessChance*100, 1) + "%\n" + @@ -28492,13 +28502,13 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { })); //Autolevel Checkbox - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("br")); var autolevelCheckboxId = "bladeburner-" + action.name + "-autolevel-checkbox"; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("label", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("label", { for:autolevelCheckboxId, innerText:"Autolevel",color:"white", tooltip:"Automatically increase operation level when possible" })); - var autolevelCheckbox = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var autolevelCheckbox = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { type:"checkbox", id:autolevelCheckboxId, margin:"4px", checked:action.autoLevel, changeListener:()=>{ @@ -28509,7 +28519,7 @@ Bladeburner.prototype.updateOperationsUIElement = function(el, action) { } Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); var isActive = el.classList.contains(ActiveActionCssClass); var isCompleted = (this.blackops[action.name] != null); var estimatedSuccessChance = action.getSuccessChance(this, {est:true}); @@ -28519,13 +28529,13 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) { //UI for Completed Black Op if (isCompleted) { - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { innerText:action.name + " (COMPLETED)", display:"block", })); return; } - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header innerText:isActive ? action.name + " (IN PROGRESS - " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeCurrent, 0) + " / " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(this.actionTimeToComplete, 0) + ")" @@ -28535,12 +28545,12 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) { if (isActive) { //Progress bar if its active var progress = this.actionTimeCurrent / this.actionTimeToComplete; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", - innerText:Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) + innerText:Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createProgressBarText"])({progress:progress}) })); } else { - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Start button + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Start button innerText:"Start", margin:"3px", padding:"3px", class:hasReqdRank ? "a-link-button" : "a-link-button-inactive", clickListener:()=>{ @@ -28551,58 +28561,58 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) { return false; } })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Set Team Size Button + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Set Team Size Button innerText:"Set Team Size (Curr Size: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(action.teamCount, 0) + ")", class:"a-link-button", margin:"3px", padding:"3px", clickListener:()=>{ var popupId = "bladeburner-operation-set-team-size-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { innerText:"Enter the amount of team members you would like to take on this " + "BlackOp. If you do not have the specified number of team members, " + "then as many as possible will be used. Note that team members may " + "be lost during operations." }); - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("input", { type:"number", placeholder: "Team Members" }); - var setBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var setBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", clickListener:()=>{ var num = Math.round(parseFloat(input.value)); if (isNaN(num)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Invalid value entered for number of Team Members (must be numeric)") + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_9__["dialogBoxCreate"])("Invalid value entered for number of Team Members (must be numeric)") } else { action.teamCount = num; this.updateBlackOpsUIElement(el, action); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createPopup"])(popupId, [txt, input, setBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createPopup"])(popupId, [txt, input, setBtn, cancelBtn]); } })); } //Info - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"inline-block", innerHTML:"
" + action.desc + "

", })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", color:hasReqdRank ? "white" : "red", innerHTML:"Required Rank: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(action.reqdRank, 0) + "
" })); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"inline-block", innerHTML:"Estimated Success Chance: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(estimatedSuccessChance*100, 1) + "%\n" + "Time Required(s): " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(actionTime, 1), @@ -28610,7 +28620,7 @@ Bladeburner.prototype.updateBlackOpsUIElement = function(el, action) { } Bladeburner.prototype.updateSkillsUIElement = function(el, skill) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(el); var skillName = skill.name; var currentLevel = 0; if (this.skills[skillName] && !isNaN(this.skills[skillName])) { @@ -28618,13 +28628,13 @@ Bladeburner.prototype.updateSkillsUIElement = function(el, skill) { } var pointCost = skill.calculateCost(currentLevel); - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("h2", { //Header innerText:skill.name + " (Lvl " + currentLevel + ")", display:"inline-block" })); var canLevel = this.skillPoints >= pointCost; var maxLvl = skill.maxLvl ? currentLevel >= skill.maxLvl : false; - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Level up button + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("a", { //Level up button innerText:"Level", display:"inline-block", class: canLevel && !maxLvl ? "a-link-button" : "a-link-button-inactive", margin:"3px", padding:"3px", @@ -28636,19 +28646,19 @@ Bladeburner.prototype.updateSkillsUIElement = function(el, skill) { return false; } })); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["appendLineBreaks"])(el, 2); if (maxLvl) { - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { color:"red", display:"block", innerText:"MAX LEVEL" })); } else { - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { display:"block", innerText:"Skill Points required: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_13__["formatNumber"])(pointCost, 0), })); } - el.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { //Info/Description + el.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["createElement"])("p", { //Info/Description innerHTML:skill.desc, display:"inline-block", })); } @@ -28701,7 +28711,7 @@ Bladeburner.prototype.executeConsoleCommands = function(commands) { this.executeConsoleCommand(arrayOfCommands[i]); } } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["exceptionAlert"])(e); } } @@ -29401,7 +29411,7 @@ Bladeburner.prototype.upgradeSkillNetscriptFn = function(skillName, workerScript this.skillPoints -= cost; this.upgradeSkill(skill); - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner && DomElems.currentTab.toLowerCase() === "skills") { + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner && DomElems.currentTab.toLowerCase() === "skills") { this.createActionAndSkillsContent(); } if (workerScript.shouldLog("upgradeSkill")) { @@ -29515,16 +29525,16 @@ Bladeburner.prototype.switchCityNetscriptFn = function(cityName, workerScript) { } Bladeburner.prototype.joinBladeburnerFactionNetscriptFn = function(workerScript) { - var bladeburnerFac = _Faction_js__WEBPACK_IMPORTED_MODULE_4__["Factions"]["Bladeburners"]; + var bladeburnerFac = _Faction__WEBPACK_IMPORTED_MODULE_4__["Factions"]["Bladeburners"]; if (bladeburnerFac.isMember) { return true; } else if (this.rank >= RankNeededForFaction) { - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["joinFaction"])(bladeburnerFac); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["joinFaction"])(bladeburnerFac); if (workerScript.shouldLog("joinBladeburnerFaction")) { workerScript.log("Joined Bladeburners Faction"); } - if (_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.overviewDiv); + if (_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].Page.Bladeburner) { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_10__["removeChildrenFromElement"])(DomElems.overviewDiv); this.createOverviewContent(); } return true; @@ -29538,12 +29548,12 @@ Bladeburner.prototype.joinBladeburnerFactionNetscriptFn = function(workerScript) } Bladeburner.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Bladeburner", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_toJSON"])("Bladeburner", this); } Bladeburner.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Bladeburner, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Generic_fromJSON"])(Bladeburner, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Bladeburner = Bladeburner; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_11__["Reviver"].constructors.Bladeburner = Bladeburner; //This initialized Bladeburner-related data that is NOT saved/loaded // eg: Skill Objects, BLack Operations @@ -30012,9 +30022,9 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "determineCrimeSuccess", function() { return determineCrimeSuccess; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findCrime", function() { return findCrime; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Crimes", function() { return Crimes; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/DialogBox */ 7); @@ -30048,8 +30058,8 @@ function Crime(name, type, time, money, difficulty, karma, params) { Crime.prototype.commit = function(div=1, singParams=null) { if (div <= 0) {div = 1;} - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].crimeType = this.type; - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].startCrime( + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].crimeType = this.type; + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].startCrime( this.hacking_exp/div, this.strength_exp/div, this.defense_exp/div, @@ -30061,21 +30071,21 @@ Crime.prototype.commit = function(div=1, singParams=null) { } Crime.prototype.successRate = function() { - var chance = (this.hacking_success_weight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].hacking_skill + - this.strength_success_weight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].strength + - this.defense_success_weight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].defense + - this.dexterity_success_weight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].dexterity + - this.agility_success_weight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].agility + - this.charisma_success_weight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].charisma + - _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeWeight * _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].intelligence); - chance /= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; + var chance = (this.hacking_success_weight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].hacking_skill + + this.strength_success_weight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].strength + + this.defense_success_weight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].defense + + this.dexterity_success_weight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].dexterity + + this.agility_success_weight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].agility + + this.charisma_success_weight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].charisma + + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeWeight * _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].intelligence); + chance /= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaxSkillLevel; chance /= this.difficulty; - chance *= _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].crime_success_mult; + chance *= _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].crime_success_mult; return Math.min(chance, 1); } const Crimes = { - Shoplift: new Crime("Shoplift", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeShoplift, 2e3, 15e3, 1/20, 0.1, { + Shoplift: new Crime("Shoplift", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeShoplift, 2e3, 15e3, 1/20, 0.1, { dexterity_success_weight: 1, agility_success_weight: 1, @@ -30083,7 +30093,7 @@ const Crimes = { agility_exp: 2, }), - RobStore: new Crime("Rob Store", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeRobStore, 60e3, 400e3, 1/5, 0.5, { + RobStore: new Crime("Rob Store", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeRobStore, 60e3, 400e3, 1/5, 0.5, { hacking_exp: 30, dexterity_exp: 45, agility_exp: 45, @@ -30092,10 +30102,10 @@ const Crimes = { dexterity_success_weight: 2, agility_success_weight: 1, - intelligence_exp: 0.25 * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: 0.25 * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, }), - Mug: new Crime("Mug", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeMug, 4e3, 36e3, 1/5, 0.25, { + Mug: new Crime("Mug", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeMug, 4e3, 36e3, 1/5, 0.25, { strength_exp: 3, defense_exp: 3, dexterity_exp: 3, @@ -30107,7 +30117,7 @@ const Crimes = { agility_success_weight: 0.5, }), - Larceny: new Crime("Larceny", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeLarceny, 90e3, 800e3, 1/3, 1.5, { + Larceny: new Crime("Larceny", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeLarceny, 90e3, 800e3, 1/3, 1.5, { hacking_exp: 45, dexterity_exp: 60, agility_exp: 60, @@ -30116,10 +30126,10 @@ const Crimes = { dexterity_success_weight: 1, agility_success_weight: 1, - intelligence_exp: 0.5 * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: 0.5 * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, }), - DealDrugs: new Crime("Deal Drugs", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeDrugs, 10e3, 120e3, 1, 0.5, { + DealDrugs: new Crime("Deal Drugs", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeDrugs, 10e3, 120e3, 1, 0.5, { dexterity_exp: 5, agility_exp: 5, charisma_exp: 10, @@ -30129,7 +30139,7 @@ const Crimes = { agility_success_weight: 1, }), - BondForgery: new Crime("Bond Forgery", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeBondForgery, 300e3, 4.5e6, 1/2, 0.1, { + BondForgery: new Crime("Bond Forgery", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeBondForgery, 300e3, 4.5e6, 1/2, 0.1, { hacking_exp: 100, dexterity_exp: 150, charisma_exp: 15, @@ -30137,10 +30147,10 @@ const Crimes = { hacking_skill_success_weight: 0.05, dexterity_success_weight: 1.25, - intelligence_exp: 2 * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: 2 * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, }), - TraffickArms: new Crime("Traffick Arms", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeTraffickArms, 40e3, 600e3, 2, 1, { + TraffickArms: new Crime("Traffick Arms", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeTraffickArms, 40e3, 600e3, 2, 1, { strength_exp: 20, defense_exp: 20, dexterity_exp: 20, @@ -30154,7 +30164,7 @@ const Crimes = { agility_success_weight: 1, }), - Homicide: new Crime("Homicide", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeHomicide, 3e3, 45e3, 1, 3, { + Homicide: new Crime("Homicide", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeHomicide, 3e3, 45e3, 1, 3, { strength_exp: 2, defense_exp: 2, dexterity_exp: 2, @@ -30168,7 +30178,7 @@ const Crimes = { kills: 1, }), - GrandTheftAuto: new Crime("Grand Theft Auto", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeGrandTheftAuto, 80e3, 1.6e6, 8, 5, { + GrandTheftAuto: new Crime("Grand Theft Auto", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeGrandTheftAuto, 80e3, 1.6e6, 8, 5, { strength_exp: 20, defense_exp: 20, dexterity_exp: 20, @@ -30181,10 +30191,10 @@ const Crimes = { agility_success_weight: 2, charisma_success_weight: 2, - intelligence_exp: _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, }), - Kidnap: new Crime("Kidnap", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeKidnap, 120e3, 3.6e6, 5, 6, { + Kidnap: new Crime("Kidnap", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeKidnap, 120e3, 3.6e6, 5, 6, { strength_exp: 80, defense_exp: 80, dexterity_exp: 80, @@ -30196,10 +30206,10 @@ const Crimes = { dexterity_success_weight: 1, agility_success_weight: 1, - intelligence_exp: 2 * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: 2 * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, }), - Assassination: new Crime("Assassination", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeAssassination, 300e3, 12e6, 8, 10, { + Assassination: new Crime("Assassination", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeAssassination, 300e3, 12e6, 8, 10, { strength_exp: 300, defense_exp: 300, dexterity_exp: 300, @@ -30209,12 +30219,12 @@ const Crimes = { dexterity_success_weight: 2, agility_success_weight: 1, - intelligence_exp: 5 * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: 5 * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, kills: 1, }), - Heist: new Crime("Heist", _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeHeist, 600e3, 120e6, 18, 15, { + Heist: new Crime("Heist", _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].CrimeHeist, 600e3, 120e6, 18, 15, { hacking_exp: 450, strength_exp: 450, defense_exp: 450, @@ -30229,7 +30239,7 @@ const Crimes = { agility_success_weight: 1, charisma_success_weight: 1, - intelligence_exp: 10 * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, + intelligence_exp: 10 * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceCrimeBaseExpGain, }), }; @@ -30246,13 +30256,13 @@ function determineCrimeSuccess(type, moneyGained) { } if(!found) { console.log(crime); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_2__["dialogBoxCreate"])("ERR: Unrecognized crime type. This is probably a bug please contact the developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_2__["dialogBoxCreate"])("ERR: Unrecognized crime type. This is probably a bug please contact the developer"); return; } if (Math.random() <= chance) { //Success - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].gainMoney(moneyGained); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].gainMoney(moneyGained); return true; } else { //Failure @@ -30308,15 +30318,15 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadMessages", function() { return loadMessages; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initMessages", function() { return initMessages; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Message", function() { return Message; }); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _Missions_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Missions.js */ 33); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _RedPill_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedPill.js */ 37); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Missions */ 33); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _RedPill__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./RedPill */ 37); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); @@ -30335,21 +30345,21 @@ function Message(filename="", msg="") { } Message.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Message", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_toJSON"])("Message", this); } Message.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Message, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Generic_fromJSON"])(Message, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Message = Message; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"].constructors.Message = Message; //Sends message to player, including a pop up function sendMessage(msg, forced=false) { console.log("sending message: " + msg.filename); msg.recvd = true; - if (forced || !_Settings_js__WEBPACK_IMPORTED_MODULE_6__["Settings"].SuppressMessages) { + if (forced || !_Settings__WEBPACK_IMPORTED_MODULE_6__["Settings"].SuppressMessages) { showMessage(msg); } addMessageToServer(msg, "home"); @@ -30359,12 +30369,12 @@ function showMessage(msg) { var txt = "Message received from unknown sender:

" + "" + msg.msg + "

" + "This message was saved as " + msg.filename + " onto your home computer."; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])(txt); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])(txt); } //Adds a message to a server function addMessageToServer(msg, serverHostname) { - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_5__["GetServerByHostname"])(serverHostname); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_5__["GetServerByHostname"])(serverHostname); if (server == null) { console.log("WARNING: Did not locate " + serverHostname); return; @@ -30390,35 +30400,35 @@ function checkForMessagesToSend() { var redpill = Messages[MessageFilenames.RedPill]; var redpillOwned = false; - if (_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].TheRedPill].owned) { + if (_Augmentations__WEBPACK_IMPORTED_MODULE_0__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_0__["AugmentationNames"].TheRedPill].owned) { redpillOwned = true; } - if (redpill && redpillOwned && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].sourceFiles.length === 0 && !_RedPill_js__WEBPACK_IMPORTED_MODULE_4__["redPillFlag"] && !_Missions_js__WEBPACK_IMPORTED_MODULE_2__["inMission"]) { - if (!_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxOpened"]) { + if (redpill && redpillOwned && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].sourceFiles.length === 0 && !_RedPill__WEBPACK_IMPORTED_MODULE_4__["redPillFlag"] && !_Missions__WEBPACK_IMPORTED_MODULE_2__["inMission"]) { + if (!_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxOpened"]) { sendMessage(redpill, true); } } else if (redpill && redpillOwned) { //If player has already destroyed a BitNode, message is not forced - if (!_RedPill_js__WEBPACK_IMPORTED_MODULE_4__["redPillFlag"] && !_Missions_js__WEBPACK_IMPORTED_MODULE_2__["inMission"] && !_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxOpened"]) { + if (!_RedPill__WEBPACK_IMPORTED_MODULE_4__["redPillFlag"] && !_Missions__WEBPACK_IMPORTED_MODULE_2__["inMission"] && !_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxOpened"]) { sendMessage(redpill); } - } else if (jumper0 && !jumper0.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 25) { + } else if (jumper0 && !jumper0.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 25) { sendMessage(jumper0); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].getHomeComputer().programs.push(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_1__["Programs"].Flight.name); - } else if (jumper1 && !jumper1.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 40) { + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].getHomeComputer().programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_1__["Programs"].Flight.name); + } else if (jumper1 && !jumper1.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 40) { sendMessage(jumper1); - } else if (cybersecTest && !cybersecTest.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 50) { + } else if (cybersecTest && !cybersecTest.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 50) { sendMessage(cybersecTest); - } else if (jumper2 && !jumper2.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 175) { + } else if (jumper2 && !jumper2.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 175) { sendMessage(jumper2); - } else if (nitesecTest && !nitesecTest.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 200) { + } else if (nitesecTest && !nitesecTest.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 200) { sendMessage(nitesecTest); - } else if (jumper3 && !jumper3.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 350) { + } else if (jumper3 && !jumper3.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 350) { sendMessage(jumper3); - } else if (jumper4 && !jumper4.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 490) { + } else if (jumper4 && !jumper4.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 490) { sendMessage(jumper4); - } else if (bitrunnersTest && !bitrunnersTest.recvd && _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 500) { + } else if (bitrunnersTest && !bitrunnersTest.recvd && _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill >= 500) { sendMessage(bitrunnersTest); } } @@ -30430,7 +30440,7 @@ function AddToAllMessages(msg) { let Messages = {} function loadMessages(saveString) { - Messages = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_8__["Reviver"]); + Messages = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_8__["Reviver"]); } let MessageFilenames = { @@ -30527,7 +30537,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "substituteAliases", function() { return substituteAliases; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadAliases", function() { return loadAliases; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadGlobalAliases", function() { return loadGlobalAliases; }); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Terminal.js */ 22); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Terminal */ 22); let Aliases = {}; @@ -30553,12 +30563,12 @@ function loadGlobalAliases(saveString) { function printAliases() { for (var name in Aliases) { if (Aliases.hasOwnProperty(name)) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_0__["post"])("alias " + name + "=" + Aliases[name]); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_0__["post"])("alias " + name + "=" + Aliases[name]); } } for (var name in GlobalAliases) { if (GlobalAliases.hasOwnProperty(name)) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_0__["post"])("global alias " + name + "=" + GlobalAliases[name]); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_0__["post"])("global alias " + name + "=" + GlobalAliases[name]); } } } @@ -30661,42 +30671,42 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasCorporationSF", function() { return hasCorporationSF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasAISF", function() { return hasAISF; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasBladeburnerSF", function() { return hasBladeburnerSF; }); -/* harmony import */ var _ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI.js */ 41); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Crimes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Crimes.js */ 27); -/* harmony import */ var _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Bladeburner.js */ 26); -/* harmony import */ var _Company_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company.js */ 10); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _DarkWeb_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DarkWeb.js */ 50); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Gang_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Gang.js */ 34); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _HacknetNode_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./HacknetNode.js */ 36); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Message_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Message.js */ 28); -/* harmony import */ var _Missions_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Missions.js */ 33); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./StockMarket.js */ 21); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Terminal.js */ 22); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 41); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Crimes__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Crimes */ 27); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Bladeburner */ 26); +/* harmony import */ var _Company__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company */ 10); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _DarkWeb__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./DarkWeb */ 50); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Gang */ 34); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./HacknetNode */ 36); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Message */ 28); +/* harmony import */ var _Missions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Missions */ 33); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./StockMarket */ 21); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./Terminal */ 22); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./TextFile */ 43); /* harmony import */ var _TextFile__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(_TextFile__WEBPACK_IMPORTED_MODULE_23__); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./NetscriptEvaluator.js */ 6); -/* harmony import */ var _NetscriptEnvironment_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./NetscriptEnvironment.js */ 67); -/* harmony import */ var _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./NetscriptPort.js */ 44); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); +/* harmony import */ var _NetscriptEnvironment__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./NetscriptEnvironment */ 67); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./NetscriptPort */ 44); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! decimal.js */ 23); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../utils/IPAddress */ 15); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); var sprintf = __webpack_require__(/*! sprintf-js */ 66).sprintf, vsprintf = __webpack_require__(/*! sprintf-js */ 66).vsprintf @@ -30805,20 +30815,20 @@ var possibleLogs = { //Used to check and set flags for every Source File, despite the name of the function function initSingularitySFFlags() { - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 3) {hasCorporationSF = true;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 4) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 3) {hasCorporationSF = true;} + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 4) { hasSingularitySF = true; - singularitySFLvl = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].lvl; + singularitySFLvl = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].lvl; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 5) {hasAISF = true;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 6) {hasBladeburnerSF = true;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 7) {hasBladeburner2079SF = true;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 8) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 5) {hasAISF = true;} + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 6) {hasBladeburnerSF = true;} + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 7) {hasBladeburner2079SF = true;} + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 8) { hasWallStreetSF = true; - wallStreetSFLvl = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].lvl; + wallStreetSFLvl = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].lvl; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 11) {hasBn11SF = true;} + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].sourceFiles[i].n === 11) {hasBn11SF = true;} } } @@ -30828,7 +30838,7 @@ function NetscriptFunctions(workerScript) { workerScript.dynamicLoadedFns[fnName] = true; workerScript.dynamicRamUsage += ramCost; if (workerScript.dynamicRamUsage > 1.01 * workerScript.ramUsage) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Dynamic RAM usage calculated to be greater than initial RAM usage on fn: " + fnName + ". This is probably because you somehow circumvented the static RAM " + "calculation.

Please don't do that :("); @@ -30848,17 +30858,17 @@ function NetscriptFunctions(workerScript) { Math : Math, Date : Date, Number : Number, - hacknetnodes : _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknetNodeWrappers, + hacknetnodes : _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknetNodeWrappers, sprintf : sprintf, vsprintf: vsprintf, scan : function(ip=workerScript.serverIp, hostnames=true){ if (workerScript.checkingRam) { - return updateStaticRam("scan", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); + return updateStaticRam("scan", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); } - updateDynamicRam("scan", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("scan", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, 'Invalid IP or hostname passed into scan() command'); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, 'Invalid IP or hostname passed into scan() command'); } var out = []; for (var i = 0; i < server.serversOnNetwork.length; i++) { @@ -30880,45 +30890,45 @@ function NetscriptFunctions(workerScript) { }, hack : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("hack", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHackRamCost); + return updateStaticRam("hack", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHackRamCost); } - updateDynamicRam("hack", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHackRamCost); + updateDynamicRam("hack", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHackRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Hack() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Hack() call has incorrect number of arguments. Takes 1 argument"); } var threads = workerScript.scriptRef.threads; if (isNaN(threads) || threads < 1) {threads = 1;} - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("hack() error. Invalid IP or hostname passed in: " + ip + ". Stopping..."); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "hack() error. Invalid IP or hostname passed in: " + ip + ". Stopping..."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "hack() error. Invalid IP or hostname passed in: " + ip + ". Stopping..."); } //Calculate the hacking time - var hackingTime = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateHackingTime"])(server); //This is in seconds + var hackingTime = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateHackingTime"])(server); //This is in seconds //No root access or skill level too low if (server.hasAdminRights == false) { workerScript.scriptRef.log("Cannot hack this server (" + server.hostname + ") because user does not have root access"); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user does not have root access"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user does not have root access"); } - if (server.requiredHackingSkill > _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill) { + if (server.requiredHackingSkill > _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill) { workerScript.scriptRef.log("Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough"); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot hack this server (" + server.hostname + ") because user's hacking skill is not high enough"); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) { workerScript.scriptRef.log("Attempting to hack " + ip + " in " + hackingTime.toFixed(3) + " seconds (t=" + threads + ")"); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(hackingTime* 1000, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(hackingTime* 1000, workerScript).then(function() { if (workerScript.env.stopFlag) {return Promise.reject(workerScript);} - var hackChance = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateHackingChance"])(server); + var hackChance = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateHackingChance"])(server); var rand = Math.random(); - var expGainedOnSuccess = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateExpGain"])(server) * threads; + var expGainedOnSuccess = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateExpGain"])(server) * threads; var expGainedOnFailure = (expGainedOnSuccess / 4); if (rand < hackChance) { //Success! - var moneyGained = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculatePercentMoneyHacked"])(server); + var moneyGained = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculatePercentMoneyHacked"])(server); moneyGained = Math.floor(server.moneyAvailable * moneyGained) * threads; //Over-the-top safety checks @@ -30930,20 +30940,20 @@ function NetscriptFunctions(workerScript) { server.moneyAvailable -= moneyGained; if (server.moneyAvailable < 0) {server.moneyAvailable = 0;} - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainMoney(moneyGained); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainMoney(moneyGained); workerScript.scriptRef.onlineMoneyMade += moneyGained; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].scriptProdSinceLastAug += moneyGained; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].scriptProdSinceLastAug += moneyGained; workerScript.scriptRef.recordHack(server.ip, moneyGained, threads); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGainedOnSuccess); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGainedOnSuccess); workerScript.scriptRef.onlineExpGained += expGainedOnSuccess; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) { workerScript.scriptRef.log("Script SUCCESSFULLY hacked " + server.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(moneyGained, 2) + " and " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(expGainedOnSuccess, 4) + " exp (t=" + threads + ")"); } - server.fortify(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ServerFortifyAmount * threads); + server.fortify(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ServerFortifyAmount * threads); return Promise.resolve(moneyGained); } else { //Player only gains 25% exp for failure? - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGainedOnFailure); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGainedOnFailure); workerScript.scriptRef.onlineExpGained += expGainedOnFailure; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.hack == null) { workerScript.scriptRef.log("Script FAILED to hack " + server.hostname + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(expGainedOnFailure, 4) + " exp (t=" + threads + ")"); @@ -30955,49 +30965,49 @@ function NetscriptFunctions(workerScript) { sleep : function(time){ if (workerScript.checkingRam) {return 0;} if (time === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "sleep() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "sleep() call has incorrect number of arguments. Takes 1 argument"); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sleep == null) { workerScript.scriptRef.log("Sleeping for " + time + " milliseconds"); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(time, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(time, workerScript).then(function() { return Promise.resolve(true); }); }, grow : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("grow", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGrowRamCost); + return updateStaticRam("grow", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGrowRamCost); } - updateDynamicRam("grow", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGrowRamCost); + updateDynamicRam("grow", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGrowRamCost); var threads = workerScript.scriptRef.threads; if (isNaN(threads) || threads < 1) {threads = 1;} if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "grow() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "grow() call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot grow(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot grow(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot grow(). Invalid IP or hostname passed in: " + ip); } //No root access or skill level too low if (server.hasAdminRights == false) { workerScript.scriptRef.log("Cannot grow this server (" + server.hostname + ") because user does not have root access"); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot grow this server (" + server.hostname + ") because user does not have root access"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot grow this server (" + server.hostname + ") because user does not have root access"); } - var growTime = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateGrowTime"])(server); + var growTime = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateGrowTime"])(server); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.grow == null) { workerScript.scriptRef.log("Executing grow() on server " + server.hostname + " in " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(growTime/1000, 3) + " seconds (t=" + threads + ")"); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(growTime, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(growTime, workerScript).then(function() { if (workerScript.env.stopFlag) {return Promise.reject(workerScript);} const moneyBefore = server.moneyAvailable; server.moneyAvailable += (1 * threads); //It can be grown even if it has no money - var growthPercentage = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["processSingleServerGrowth"])(server, 450 * threads); + var growthPercentage = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["processSingleServerGrowth"])(server, 450 * threads); const moneyAfter = server.moneyAvailable; workerScript.scriptRef.recordGrow(server.ip, threads); - var expGain = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateExpGain"])(server) * threads; + var expGain = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateExpGain"])(server) * threads; if (growthPercentage == 1) { expGain = 0; } @@ -31007,72 +31017,72 @@ function NetscriptFunctions(workerScript) { Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads +")"); } workerScript.scriptRef.onlineExpGained += expGain; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGain); return Promise.resolve(moneyAfter/moneyBefore); }); }, weaken : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("weaken", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptWeakenRamCost); + return updateStaticRam("weaken", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptWeakenRamCost); } - updateDynamicRam("weaken", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptWeakenRamCost); + updateDynamicRam("weaken", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptWeakenRamCost); var threads = workerScript.scriptRef.threads; if (isNaN(threads) || threads < 1) {threads = 1;} if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "weaken() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "weaken() call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot weaken(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot weaken(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot weaken(). Invalid IP or hostname passed in: " + ip); } //No root access or skill level too low if (server.hasAdminRights == false) { workerScript.scriptRef.log("Cannot weaken this server (" + server.hostname + ") because user does not have root access"); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot weaken this server (" + server.hostname + ") because user does not have root access"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot weaken this server (" + server.hostname + ") because user does not have root access"); } - var weakenTime = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateWeakenTime"])(server); + var weakenTime = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateWeakenTime"])(server); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.weaken == null) { workerScript.scriptRef.log("Executing weaken() on server " + server.hostname + " in " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(weakenTime/1000, 3) + " seconds (t=" + threads + ")"); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(weakenTime, workerScript).then(function() { + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["netscriptDelay"])(weakenTime, workerScript).then(function() { if (workerScript.env.stopFlag) {return Promise.reject(workerScript);} - server.weaken(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ServerWeakenAmount * threads); + server.weaken(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ServerWeakenAmount * threads); workerScript.scriptRef.recordWeaken(server.ip, threads); - var expGain = Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateExpGain"])(server) * threads; + var expGain = Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateExpGain"])(server) * threads; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.weaken == null) { workerScript.scriptRef.log("Server security level on " + server.hostname + " weakened to " + server.hackDifficulty + ". Gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(expGain, 4) + " hacking exp (t=" + threads + ")"); } workerScript.scriptRef.onlineExpGained += expGain; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGain); - return Promise.resolve(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ServerWeakenAmount * threads); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainHackingExp(expGain); + return Promise.resolve(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ServerWeakenAmount * threads); }); }, print : function(args){ if (workerScript.checkingRam) {return 0;} if (args === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "print() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "print() call has incorrect number of arguments. Takes 1 argument"); } workerScript.scriptRef.log(args.toString()); }, tprint : function(args) { if (workerScript.checkingRam) {return 0;} if (args === undefined || args == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "tprint() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "tprint() call has incorrect number of arguments. Takes 1 argument"); } var x = args.toString(); if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isHTML"])(x)) { - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].takeDamage(1); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_29__["dialogBoxCreate"])("You suddenly feel a sharp shooting pain through your body as an angry voice in your head exclaims:

" + + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].takeDamage(1); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_29__["dialogBoxCreate"])("You suddenly feel a sharp shooting pain through your body as an angry voice in your head exclaims:

" + "DON'T USE TPRINT() TO OUTPUT HTML ELEMENTS TO YOUR TERMINAL!!!!

" + "(You lost 1 HP)"); return; } - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_22__["post"])(workerScript.scriptRef.filename + ": " + args.toString()); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_22__["post"])(workerScript.scriptRef.filename + ": " + args.toString()); }, clearLog : function() { if (workerScript.checkingRam) {return 0;} @@ -31081,7 +31091,7 @@ function NetscriptFunctions(workerScript) { disableLog : function(fn) { if (workerScript.checkingRam) {return 0;} if(possibleLogs[fn]===undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument to disableLog: "+fn); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument to disableLog: "+fn); } workerScript.disableLogs[fn] = true; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.disableLog == null) { @@ -31091,7 +31101,7 @@ function NetscriptFunctions(workerScript) { enableLog : function(fn) { if (workerScript.checkingRam) {return 0;} if(possibleLogs[fn]===undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument to enableLog: "+fn); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument to enableLog: "+fn); } delete workerScript.disableLogs[fn]; if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.enableLog == null) { @@ -31100,22 +31110,22 @@ function NetscriptFunctions(workerScript) { }, nuke : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("nuke", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + return updateStaticRam("nuke", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); } - updateDynamicRam("nuke", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + updateDynamicRam("nuke", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call nuke(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call nuke(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call nuke(). Invalid IP or hostname passed in: " + ip); } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"].NukeProgram.name)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the NUKE.exe virus!"); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"].NukeProgram.name)) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the NUKE.exe virus!"); } if (server.openPortCount < server.numOpenPortsRequired) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Not enough ports opened to use NUKE.exe virus"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Not enough ports opened to use NUKE.exe virus"); } if (server.hasAdminRights) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.nuke == null) { @@ -31131,20 +31141,20 @@ function NetscriptFunctions(workerScript) { }, brutessh : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("brutessh", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + return updateStaticRam("brutessh", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); } - updateDynamicRam("brutessh", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + updateDynamicRam("brutessh", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call brutessh(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call brutessh(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call brutessh(). Invalid IP or hostname passed in: " + ip); } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"].BruteSSHProgram.name)) { + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"].BruteSSHProgram.name)) { workerScript.scriptRef.log("You do not have the BruteSSH.exe program!"); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the BruteSSH.exe program!"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the BruteSSH.exe program!"); } if (!server.sshPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.brutessh == null) { @@ -31161,19 +31171,19 @@ function NetscriptFunctions(workerScript) { }, ftpcrack : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("ftpcrack", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + return updateStaticRam("ftpcrack", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); } - updateDynamicRam("ftpcrack", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + updateDynamicRam("ftpcrack", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call ftpcrack(). Invalid IP or hostname passed in: " + ip); } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"].FTPCrackProgram.name)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the FTPCrack.exe program!"); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"].FTPCrackProgram.name)) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the FTPCrack.exe program!"); } if (!server.ftpPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.ftpcrack == null) { @@ -31190,19 +31200,19 @@ function NetscriptFunctions(workerScript) { }, relaysmtp : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("relaysmtp", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + return updateStaticRam("relaysmtp", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); } - updateDynamicRam("relaysmtp", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + updateDynamicRam("relaysmtp", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call relaysmtp(). Invalid IP or hostname passed in: " + ip); } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"].RelaySMTPProgram.name)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the relaySMTP.exe program!"); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"].RelaySMTPProgram.name)) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the relaySMTP.exe program!"); } if (!server.smtpPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.relaysmtp == null) { @@ -31219,19 +31229,19 @@ function NetscriptFunctions(workerScript) { }, httpworm : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("httpworm", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + return updateStaticRam("httpworm", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); } - updateDynamicRam("httpworm", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + updateDynamicRam("httpworm", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call httpworm(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call httpworm(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call httpworm(). Invalid IP or hostname passed in: " + ip); } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"].HTTPWormProgram.name)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the HTTPWorm.exe program!"); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"].HTTPWormProgram.name)) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the HTTPWorm.exe program!"); } if (!server.httpPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.httpworm == null) { @@ -31248,19 +31258,19 @@ function NetscriptFunctions(workerScript) { }, sqlinject : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("sqlinject", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + return updateStaticRam("sqlinject", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); } - updateDynamicRam("sqlinject", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); + updateDynamicRam("sqlinject", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPortProgramRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Program call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot call sqlinject(). Invalid IP or hostname passed in: " + ip); } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"].SQLInjectProgram.name)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the SQLInject.exe program!"); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"].SQLInjectProgram.name)) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You do not have the SQLInject.exe program!"); } if (!server.sqlPortOpen) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sqlinject == null) { @@ -31277,72 +31287,72 @@ function NetscriptFunctions(workerScript) { }, run : function(scriptname,threads = 1){ if (workerScript.checkingRam) { - return updateStaticRam("run", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptRunRamCost); + return updateStaticRam("run", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptRunRamCost); } - updateDynamicRam("run", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptRunRamCost); + updateDynamicRam("run", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptRunRamCost); if (scriptname === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "run() call has incorrect number of arguments. Usage: run(scriptname, [numThreads], [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "run() call has incorrect number of arguments. Usage: run(scriptname, [numThreads], [arg1], [arg2]...)"); } if (isNaN(threads) || threads < 1) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); } var argsForNewScript = []; for (var i = 2; i < arguments.length; ++i) { argsForNewScript.push(arguments[i]); } - var scriptServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["runScriptFromScript"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["runScriptFromScript"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); }, exec : function(scriptname,ip,threads = 1) { if (workerScript.checkingRam) { - return updateStaticRam("exec", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptExecRamCost); + return updateStaticRam("exec", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptExecRamCost); } - updateDynamicRam("exec", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptExecRamCost); + updateDynamicRam("exec", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptExecRamCost); if (scriptname === undefined || ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "exec() call has incorrect number of arguments. Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "exec() call has incorrect number of arguments. Usage: exec(scriptname, server, [numThreads], [arg1], [arg2]...)"); } if (isNaN(threads) || threads < 1) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument for thread count passed into exec(). Must be numeric and greater than 0"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument for thread count passed into exec(). Must be numeric and greater than 0"); } var argsForNewScript = []; for (var i = 3; i < arguments.length; ++i) { argsForNewScript.push(arguments[i]); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid hostname/ip passed into exec() command: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid hostname/ip passed into exec() command: " + ip); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["runScriptFromScript"])(server, scriptname, argsForNewScript, workerScript, threads); + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["runScriptFromScript"])(server, scriptname, argsForNewScript, workerScript, threads); }, spawn : function(scriptname, threads) { if (workerScript.checkingRam) { - return updateStaticRam("spawn", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSpawnRamCost); + return updateStaticRam("spawn", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSpawnRamCost); } - updateDynamicRam("spawn", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSpawnRamCost); + updateDynamicRam("spawn", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSpawnRamCost); if (scriptname == null || threads == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid scriptname or numThreads argument passed to spawn()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid scriptname or numThreads argument passed to spawn()"); } setTimeout(()=>{ if (scriptname === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "spawn() call has incorrect number of arguments. Usage: spawn(scriptname, numThreads, [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "spawn() call has incorrect number of arguments. Usage: spawn(scriptname, numThreads, [arg1], [arg2]...)"); } if (isNaN(threads) || threads < 1) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument for thread count passed into run(). Must be numeric and greater than 0"); } var argsForNewScript = []; for (var i = 2; i < arguments.length; ++i) { argsForNewScript.push(arguments[i]); } - var scriptServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["runScriptFromScript"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["runScriptFromScript"])(scriptServer, scriptname, argsForNewScript, workerScript, threads); }, 20000); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.spawn == null) { workerScript.scriptRef.log("spawn() will execute " + scriptname + " in 20 seconds"); @@ -31351,55 +31361,55 @@ function NetscriptFunctions(workerScript) { }, kill : function(filename,ip) { if (workerScript.checkingRam) { - return updateStaticRam("kill", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); + return updateStaticRam("kill", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); } - updateDynamicRam("kill", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); + updateDynamicRam("kill", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); if (filename === undefined || ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "kill() call has incorrect number of arguments. Usage: kill(scriptname, server, [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "kill() call has incorrect number of arguments. Usage: kill(scriptname, server, [arg1], [arg2]...)"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("kill() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "kill() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "kill() failed. Invalid IP or hostname passed in: " + ip); } var argsForKillTarget = []; for (var i = 2; i < arguments.length; ++i) { argsForKillTarget.push(arguments[i]); } - var runningScriptObj = Object(_Script_js__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(filename, argsForKillTarget, server); + var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(filename, argsForKillTarget, server); if (runningScriptObj == null) { - workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForKillTarget)); + workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForKillTarget)); return false; } - var res = Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(runningScriptObj, server.ip); + var res = Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(runningScriptObj, server.ip); if (res) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.kill == null) { - workerScript.scriptRef.log("Killing " + filename + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForKillTarget) + ". May take up to a few minutes for the scripts to die..."); + workerScript.scriptRef.log("Killing " + filename + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForKillTarget) + ". May take up to a few minutes for the scripts to die..."); } return true; } else { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.kill == null) { - workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForKillTarget)); + workerScript.scriptRef.log("kill() failed. No such script "+ filename + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForKillTarget)); } return false; } }, killall : function(ip=workerScript.serverIp){ if (workerScript.checkingRam) { - return updateStaticRam("killall", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); + return updateStaticRam("killall", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); } - updateDynamicRam("killall", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); + updateDynamicRam("killall", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptKillRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "killall() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "killall() call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("killall() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "killall() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "killall() failed. Invalid IP or hostname passed in: " + ip); } var scriptsRunning = (server.runningScripts.length > 0); for (var i = server.runningScripts.length-1; i >= 0; --i) { - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(server.runningScripts[i], server.ip); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(server.runningScripts[i], server.ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.killall == null) { workerScript.scriptRef.log("killall(): Killing all scripts on " + server.hostname + ". May take a few minutes for the scripts to die"); @@ -31408,11 +31418,11 @@ function NetscriptFunctions(workerScript) { }, exit : function() { if (workerScript.checkingRam) {return 0;} - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in exit(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in exit(). This is a bug please contact game dev"); } - if (Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(workerScript.scriptRef, server.ip)) { + if (Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(workerScript.scriptRef, server.ip)) { workerScript.scriptRef.log("Exiting..."); } else { workerScript.scriptRef.log("Exit failed(). This is a bug please contact game developer"); @@ -31420,11 +31430,11 @@ function NetscriptFunctions(workerScript) { }, scp : function(scriptname, ip1, ip2) { if (workerScript.checkingRam) { - return updateStaticRam("scp", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScpRamCost); + return updateStaticRam("scp", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScpRamCost); } - updateDynamicRam("scp", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScpRamCost); + updateDynamicRam("scp", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScpRamCost); if (arguments.length !== 2 && arguments.length !== 3) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } if (scriptname && scriptname.constructor === Array) { //Recursively call scp on all elements of array @@ -31436,38 +31446,38 @@ function NetscriptFunctions(workerScript) { }); return res; } - if (!scriptname.endsWith(".lit") && !Object(_Script_js__WEBPACK_IMPORTED_MODULE_17__["isScriptFilename"])(scriptname) && + if (!scriptname.endsWith(".lit") && !Object(_Script__WEBPACK_IMPORTED_MODULE_17__["isScriptFilename"])(scriptname) && !scriptname.endsWith("txt")) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() does not work with this file type. It only works for .script, .lit, and .txt files"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() does not work with this file type. It only works for .script, .lit, and .txt files"); } var destServer, currServ; if (arguments.length === 3) { //scriptname, source, destination if (scriptname === undefined || ip1 === undefined || ip2 === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } - destServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip2); + destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip2); if (destServer == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid hostname/ip passed into scp() command: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid hostname/ip passed into scp() command: " + ip); } - currServ = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip1); + currServ = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip1); if (currServ == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server ip for this script. This is a bug please contact game developer"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server ip for this script. This is a bug please contact game developer"); } } else if (arguments.length === 2) { //scriptname, destination if (scriptname === undefined || ip1 === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: scp() call has incorrect number of arguments. Takes 2 or 3 arguments"); } - destServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip1); + destServer = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip1); if (destServer == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid hostname/ip passed into scp() command: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid hostname/ip passed into scp() command: " + ip); } - currServ = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + currServ = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (currServ == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server ip for this script. This is a bug please contact game developer"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server ip for this script. This is a bug please contact game developer"); } } @@ -31475,7 +31485,7 @@ function NetscriptFunctions(workerScript) { if (scriptname.endsWith(".lit")) { var found = false; for (var i = 0; i < currServ.messages.length; ++i) { - if (!(currServ.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_14__["Message"]) && currServ.messages[i] == scriptname) { + if (!(currServ.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_14__["Message"]) && currServ.messages[i] == scriptname) { found = true; break; } @@ -31563,7 +31573,7 @@ function NetscriptFunctions(workerScript) { } //Create new script if it does not already exist - var newScript = new _Script_js__WEBPACK_IMPORTED_MODULE_17__["Script"](); + var newScript = new _Script__WEBPACK_IMPORTED_MODULE_17__["Script"](); newScript.filename = scriptname; newScript.code = sourceScript.code; newScript.ramUsage = sourceScript.ramUsage; @@ -31576,16 +31586,16 @@ function NetscriptFunctions(workerScript) { }, ls : function(ip, grep) { if (workerScript.checkingRam) { - return updateStaticRam("ls", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); + return updateStaticRam("ls", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); } - updateDynamicRam("ls", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); + updateDynamicRam("ls", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); if (ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ls() failed because of invalid arguments. Usage: ls(ip/hostname, [grep filter])"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ls() failed because of invalid arguments. Usage: ls(ip/hostname, [grep filter])"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("ls() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ls() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ls() failed. Invalid IP or hostname passed in: " + ip); } //Get the grep filter, if one exists @@ -31616,7 +31626,7 @@ function NetscriptFunctions(workerScript) { } for (var i = 0; i < server.messages.length; i++) { if (filter) { - if (server.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_14__["Message"]) { + if (server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_14__["Message"]) { if (server.messages[i].filename.includes(filter)) { allFiles.push(server.messages[i].filename); } @@ -31624,7 +31634,7 @@ function NetscriptFunctions(workerScript) { allFiles.push(server.messages[i]); } } else { - if (server.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_14__["Message"]) { + if (server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_14__["Message"]) { allFiles.push(server.messages[i].filename); } else { allFiles.push(server.messages[i]); @@ -31648,13 +31658,13 @@ function NetscriptFunctions(workerScript) { }, ps : function(ip=workerScript.serverIp) { if (workerScript.checkingRam) { - return updateStaticRam("ps", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); + return updateStaticRam("ps", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); } - updateDynamicRam("ps", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("ps", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptScanRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null){ workerScript.scriptRef.log("ps() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ps() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ps() failed. Invalid IP or hostname passed in: " + ip); } const processes = []; for(const i in server.runningScripts) { @@ -31665,104 +31675,104 @@ function NetscriptFunctions(workerScript) { }, hasRootAccess : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("hasRootAccess", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHasRootAccessRamCost); + return updateStaticRam("hasRootAccess", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHasRootAccessRamCost); } - updateDynamicRam("hasRootAccess", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHasRootAccessRamCost); + updateDynamicRam("hasRootAccess", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptHasRootAccessRamCost); if (ip===undefined){ - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "hasRootAccess() call has incorrect number of arguments. Takes 1 argument"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "hasRootAccess() call has incorrect number of arguments. Takes 1 argument"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null){ workerScript.scriptRef.log("hasRootAccess() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "hasRootAccess() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "hasRootAccess() failed. Invalid IP or hostname passed in: " + ip); } return server.hasAdminRights; }, getIp : function() { if (workerScript.checkingRam) { - return updateStaticRam("getIp", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); + return updateStaticRam("getIp", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); } - updateDynamicRam("getIp", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); - var scriptServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + updateDynamicRam("getIp", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); + var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } return scriptServer.ip; }, getHostname : function(){ if (workerScript.checkingRam) { - return updateStaticRam("getHostname", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); + return updateStaticRam("getHostname", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); } - updateDynamicRam("getHostname", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); - var scriptServer = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + updateDynamicRam("getHostname", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHostnameRamCost); + var scriptServer = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (scriptServer == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find server. This is a bug in the game. Report to game dev"); } return scriptServer.hostname; }, getHackingLevel : function(){ if (workerScript.checkingRam) { - return updateStaticRam("getHackingLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackingLevelRamCost); + return updateStaticRam("getHackingLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackingLevelRamCost); } - updateDynamicRam("getHackingLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackingLevelRamCost); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].updateSkillLevels(); + updateDynamicRam("getHackingLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackingLevelRamCost); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].updateSkillLevels(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getHackingLevel == null) { - workerScript.scriptRef.log("getHackingLevel() returned " + _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill); + workerScript.scriptRef.log("getHackingLevel() returned " + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill); } - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill; + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill; }, getHackingMultipliers : function() { if (workerScript.checkingRam) { - return updateStaticRam("getHackingMultipliers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); + return updateStaticRam("getHackingMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); } - updateDynamicRam("getHackingMultipliers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); + updateDynamicRam("getHackingMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); return { - chance: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_chance_mult, - speed: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_speed_mult, - money: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_money_mult, - growth: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_grow_mult, + chance: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_chance_mult, + speed: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_speed_mult, + money: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_money_mult, + growth: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_grow_mult, }; }, getHacknetMultipliers : function() { if (workerScript.checkingRam) { - return updateStaticRam("getHacknetMultipliers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); + return updateStaticRam("getHacknetMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); } - updateDynamicRam("getHacknetMultipliers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); + updateDynamicRam("getHacknetMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); return { - production: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_money_mult, - purchaseCost: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_purchase_cost_mult, - ramCost: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_ram_cost_mult, - coreCost: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_core_cost_mult, - levelCost: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_level_cost_mult, + production: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_money_mult, + purchaseCost: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_purchase_cost_mult, + ramCost: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_ram_cost_mult, + coreCost: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_core_cost_mult, + levelCost: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacknet_node_level_cost_mult, }; }, getBitNodeMultipliers: function() { if (workerScript.checkingRam) { - return updateStaticRam("getBitNodeMultipliers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); + return updateStaticRam("getBitNodeMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); } - updateDynamicRam("getBitNodeMultipliers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); + updateDynamicRam("getBitNodeMultipliers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetMultipliersRamCost); if (!hasAISF) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getBitNodeMultipliers(). It requires Source-File 5 to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getBitNodeMultipliers(). It requires Source-File 5 to run."); } - let copy = Object.assign({}, _BitNode_js__WEBPACK_IMPORTED_MODULE_2__["BitNodeMultipliers"]); + let copy = Object.assign({}, _BitNode__WEBPACK_IMPORTED_MODULE_2__["BitNodeMultipliers"]); return copy; }, getServerMoneyAvailable : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("getServerMoneyAvailable", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerMoneyAvailable", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerMoneyAvailable", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerMoneyAvailable", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerMoneyAvailable() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerMoneyAvailable() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerMoneyAvailable() failed. Invalid IP or hostname passed in: " + ip); } if (server.hostname == "home") { //Return player's money if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMoneyAvailable == null) { - workerScript.scriptRef.log("getServerMoneyAvailable('home') returned player's money: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.toNumber(), 2)); + workerScript.scriptRef.log("getServerMoneyAvailable('home') returned player's money: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.toNumber(), 2)); } - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.toNumber(); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.toNumber(); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMoneyAvailable == null) { workerScript.scriptRef.log("getServerMoneyAvailable() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.moneyAvailable, 2) + " for " + server.hostname); @@ -31771,13 +31781,13 @@ function NetscriptFunctions(workerScript) { }, getServerSecurityLevel : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("getServerSecurityLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerSecurityLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerSecurityLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerSecurityLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerSecurityLevel == null) { workerScript.scriptRef.log("getServerSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.hackDifficulty, 3) + " for " + server.hostname); @@ -31786,13 +31796,13 @@ function NetscriptFunctions(workerScript) { }, getServerBaseSecurityLevel : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("getServerBaseSecurityLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerBaseSecurityLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerBaseSecurityLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerBaseSecurityLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerBaseSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerBaseSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerBaseSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerBaseSecurityLevel == null) { workerScript.scriptRef.log("getServerBaseSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.baseDifficulty, 3) + " for " + server.hostname); @@ -31801,13 +31811,13 @@ function NetscriptFunctions(workerScript) { }, getServerMinSecurityLevel : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getServerMinSecurityLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerMinSecurityLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerMinSecurityLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerMinSecurityLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerMinSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerMinSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerMinSecurityLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMinSecurityLevel == null) { workerScript.scriptRef.log("getServerMinSecurityLevel() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.minDifficulty, 3) + " for " + server.hostname); @@ -31816,13 +31826,13 @@ function NetscriptFunctions(workerScript) { }, getServerRequiredHackingLevel : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getServerRequiredHackingLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerRequiredHackingLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerRequiredHackingLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerRequiredHackingLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerRequiredHackingLevel() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerRequiredHackingLevel() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerRequiredHackingLevel() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerRequiredHackingLevel == null) { workerScript.scriptRef.log("getServerRequiredHackingLevel returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.requiredHackingSkill, 0) + " for " + server.hostname); @@ -31831,13 +31841,13 @@ function NetscriptFunctions(workerScript) { }, getServerMaxMoney : function(ip){ if (workerScript.checkingRam) { - return updateStaticRam("getServerMaxMoney", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerMaxMoney", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerMaxMoney", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerMaxMoney", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerMaxMoney() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerMaxMoney() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerMaxMoney() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerMaxMoney == null) { workerScript.scriptRef.log("getServerMaxMoney() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.moneyMax, 0) + " for " + server.hostname); @@ -31846,13 +31856,13 @@ function NetscriptFunctions(workerScript) { }, getServerGrowth : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getServerGrowth", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerGrowth", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerGrowth", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerGrowth", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerGrowth() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerGrowth() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerGrowth() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerGrowth == null) { workerScript.scriptRef.log("getServerGrowth() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.serverGrowth, 0) + " for " + server.hostname); @@ -31861,13 +31871,13 @@ function NetscriptFunctions(workerScript) { }, getServerNumPortsRequired : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getServerNumPortsRequired", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerNumPortsRequired", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerNumPortsRequired", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerNumPortsRequired", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerNumPortsRequired() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerNumPortsRequired() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerNumPortsRequired() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerNumPortsRequired == null) { workerScript.scriptRef.log("getServerNumPortsRequired() returned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.numOpenPortsRequired, 0) + " for " + server.hostname); @@ -31876,13 +31886,13 @@ function NetscriptFunctions(workerScript) { }, getServerRam : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getServerRam", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("getServerRam", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("getServerRam", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getServerRam", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getServerRam() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerRam() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getServerRam() failed. Invalid IP or hostname passed in: " + ip); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.getServerRam == null) { workerScript.scriptRef.log("getServerRam() returned [" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.maxRam, 2) + "GB, " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(server.ramUsed, 2) + "GB]"); @@ -31891,23 +31901,23 @@ function NetscriptFunctions(workerScript) { }, serverExists : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("serverExists", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return updateStaticRam("serverExists", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); } - updateDynamicRam("serverExists", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); - return (Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip) !== null); + updateDynamicRam("serverExists", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetServerRamCost); + return (Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip) !== null); }, fileExists : function(filename,ip=workerScript.serverIp) { if (workerScript.checkingRam) { - return updateStaticRam("fileExists", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptFileExistsRamCost); + return updateStaticRam("fileExists", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptFileExistsRamCost); } - updateDynamicRam("fileExists", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptFileExistsRamCost); + updateDynamicRam("fileExists", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptFileExistsRamCost); if (filename === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "fileExists() call has incorrect number of arguments. Usage: fileExists(scriptname, [server])"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "fileExists() call has incorrect number of arguments. Usage: fileExists(scriptname, [server])"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("fileExists() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "fileExists() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "fileExists() failed. Invalid IP or hostname passed in: " + ip); } for (var i = 0; i < server.scripts.length; ++i) { if (filename == server.scripts[i].filename) { @@ -31920,7 +31930,7 @@ function NetscriptFunctions(workerScript) { } } for (var i = 0; i < server.messages.length; ++i) { - if (!(server.messages[i] instanceof _Message_js__WEBPACK_IMPORTED_MODULE_14__["Message"]) && + if (!(server.messages[i] instanceof _Message__WEBPACK_IMPORTED_MODULE_14__["Message"]) && filename.toLowerCase() === server.messages[i]) { return true; } @@ -31933,77 +31943,77 @@ function NetscriptFunctions(workerScript) { }, isRunning : function(filename,ip) { if (workerScript.checkingRam) { - return updateStaticRam("isRunning", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptIsRunningRamCost); + return updateStaticRam("isRunning", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptIsRunningRamCost); } - updateDynamicRam("isRunning", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptIsRunningRamCost); + updateDynamicRam("isRunning", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptIsRunningRamCost); if (filename === undefined || ip === undefined) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "isRunning() call has incorrect number of arguments. Usage: isRunning(scriptname, server, [arg1], [arg2]...)"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "isRunning() call has incorrect number of arguments. Usage: isRunning(scriptname, server, [arg1], [arg2]...)"); } - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("isRunning() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "isRunning() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "isRunning() failed. Invalid IP or hostname passed in: " + ip); } var argsForTargetScript = []; for (var i = 2; i < arguments.length; ++i) { argsForTargetScript.push(arguments[i]); } - return (Object(_Script_js__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(filename, argsForTargetScript, server) != null); + return (Object(_Script__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(filename, argsForTargetScript, server) != null); }, getNextHacknetNodeCost : function() { if (workerScript.checkingRam) { - return updateStaticRam("getNextHacknetNodeCost", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); + return updateStaticRam("getNextHacknetNodeCost", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); } - updateDynamicRam("getNextHacknetNodeCost", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); - return Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_12__["getCostOfNextHacknetNode"])(); + updateDynamicRam("getNextHacknetNodeCost", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); + return Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_12__["getCostOfNextHacknetNode"])(); }, purchaseHacknetNode : function() { if (workerScript.checkingRam) { - return updateStaticRam("purchaseHacknetNode", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); + return updateStaticRam("purchaseHacknetNode", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); } - updateDynamicRam("purchaseHacknetNode", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); - return Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_12__["purchaseHacknet"])(); + updateDynamicRam("purchaseHacknetNode", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseHacknetRamCost); + return Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_12__["purchaseHacknet"])(); }, getStockPrice : function(symbol) { if (workerScript.checkingRam) { - return updateStaticRam("getStockPrice", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); + return updateStaticRam("getStockPrice", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); } - updateDynamicRam("getStockPrice", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use getStockPrice()"); + updateDynamicRam("getStockPrice", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use getStockPrice()"); } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPrice()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPrice()"); } return parseFloat(stock.price.toFixed(3)); }, getStockPosition : function(symbol) { if (workerScript.checkingRam) { - return updateStaticRam("getStockPosition", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); + return updateStaticRam("getStockPosition", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); } - updateDynamicRam("getStockPosition", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use getStockPosition()"); + updateDynamicRam("getStockPosition", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use getStockPosition()"); } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPosition()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into getStockPosition()"); } return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx]; }, buyStock : function(symbol, shares) { if (workerScript.checkingRam) { - return updateStaticRam("buyStock", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + return updateStaticRam("buyStock", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); } - updateDynamicRam("buyStock", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use buyStock()"); + updateDynamicRam("buyStock", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use buyStock()"); } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into buyStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into buyStock()"); } if (shares < 0 || isNaN(shares)) { workerScript.scriptRef.log("ERROR: Invalid 'shares' argument passed to buyStock()"); @@ -32013,20 +32023,20 @@ function NetscriptFunctions(workerScript) { if (shares === 0) {return 0;} var totalPrice = stock.price * shares; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission)) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission)) { workerScript.scriptRef.log("Not enough money to purchase " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(shares, 0) + " shares of " + symbol + ". Need $" + - Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission, 2).toString()); + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission, 2).toString()); return 0; } var origTotal = stock.playerShares * stock.playerAvgPx; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(totalPrice + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(totalPrice + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission); var newTotal = origTotal + totalPrice; stock.playerShares += shares; stock.playerAvgPx = newTotal / stock.playerShares; - if (_engine_js__WEBPACK_IMPORTED_MODULE_9__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_9__["Engine"].Page.StockMarket) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["updateStockPlayerPosition"])(stock); + if (_engine__WEBPACK_IMPORTED_MODULE_9__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_9__["Engine"].Page.StockMarket) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_21__["updateStockPlayerPosition"])(stock); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.buyStock == null) { workerScript.scriptRef.log("Bought " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + @@ -32036,15 +32046,15 @@ function NetscriptFunctions(workerScript) { }, sellStock : function(symbol, shares) { if (workerScript.checkingRam) { - return updateStaticRam("sellStock", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + return updateStaticRam("sellStock", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); } - updateDynamicRam("sellStock", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use sellStock()"); + updateDynamicRam("sellStock", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use sellStock()"); } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into sellStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid stock symbol passed into sellStock()"); } if (shares < 0 || isNaN(shares)) { workerScript.scriptRef.log("ERROR: Invalid 'shares' argument passed to sellStock()"); @@ -32053,21 +32063,21 @@ function NetscriptFunctions(workerScript) { shares = Math.round(shares); if (shares > stock.playerShares) {shares = stock.playerShares;} if (shares === 0) {return 0;} - var gains = stock.price * shares - _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainMoney(gains); + var gains = stock.price * shares - _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainMoney(gains); //Calculate net profit and add to script stats - var netProfit = ((stock.price - stock.playerAvgPx) * shares) - _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission; + var netProfit = ((stock.price - stock.playerAvgPx) * shares) - _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].StockMarketCommission; if (isNaN(netProfit)) {netProfit = 0;} workerScript.scriptRef.onlineMoneyMade += netProfit; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].scriptProdSinceLastAug += netProfit; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].scriptProdSinceLastAug += netProfit; stock.playerShares -= shares; if (stock.playerShares == 0) { stock.playerAvgPx = 0; } - if (_engine_js__WEBPACK_IMPORTED_MODULE_9__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_9__["Engine"].Page.StockMarket) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["updateStockPlayerPosition"])(stock); + if (_engine__WEBPACK_IMPORTED_MODULE_9__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_9__["Engine"].Page.StockMarket) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_21__["updateStockPlayerPosition"])(stock); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.sellStock == null) { workerScript.scriptRef.log("Sold " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(shares, 0) + " shares of " + stock.symbol + " at $" + @@ -32078,127 +32088,127 @@ function NetscriptFunctions(workerScript) { }, shortStock(symbol, shares) { if (workerScript.checkingRam) { - return updateStaticRam("shortStock", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + return updateStaticRam("shortStock", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); } - updateDynamicRam("shortStock", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use shortStock()"); + updateDynamicRam("shortStock", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use shortStock()"); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use shortStock(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use shortStock(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); } } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into shortStock()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into shortStock()"); } - var res = Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["shortStock"])(stock, shares, workerScript); + var res = Object(_StockMarket__WEBPACK_IMPORTED_MODULE_21__["shortStock"])(stock, shares, workerScript); return res ? stock.price : 0; }, sellShort(symbol, shares) { if (workerScript.checkingRam) { - return updateStaticRam("sellShort", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + return updateStaticRam("sellShort", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); } - updateDynamicRam("sellShort", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use sellShort()"); + updateDynamicRam("sellShort", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use sellShort()"); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use sellShort(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use sellShort(). You must either be in BitNode-8 or you must have Level 2 of Source-File 8"); } } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into sellShort()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into sellShort()"); } - var res = Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["sellShort"])(stock, shares, workerScript); + var res = Object(_StockMarket__WEBPACK_IMPORTED_MODULE_21__["sellShort"])(stock, shares, workerScript); return res ? stock.price : 0; }, placeOrder(symbol, shares, price, type, pos) { if (workerScript.checkingRam) { - return updateStaticRam("placeOrder", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + return updateStaticRam("placeOrder", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); } - updateDynamicRam("placeOrder", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use placeOrder()"); + updateDynamicRam("placeOrder", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use placeOrder()"); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use placeOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use placeOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); } } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into placeOrder()"); } var orderType, orderPos; type = type.toLowerCase(); if (type.includes("limit") && type.includes("buy")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitBuy; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitBuy; } else if (type.includes("limit") && type.includes("sell")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitSell; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitSell; } else if (type.includes("stop") && type.includes("buy")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopBuy; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopBuy; } else if (type.includes("stop") && type.includes("sell")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopSell; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopSell; } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); } pos = pos.toLowerCase(); if (pos.includes("l")) { - orderPos = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Long; + orderPos = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Long; } else if (pos.includes('s')) { - orderPos = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Short; + orderPos = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Short; } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); } - return Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["placeOrder"])(stock, shares, price, orderType, orderPos, workerScript); + return Object(_StockMarket__WEBPACK_IMPORTED_MODULE_21__["placeOrder"])(stock, shares, price, orderType, orderPos, workerScript); }, cancelOrder(symbol, shares, price, type, pos) { if (workerScript.checkingRam) { - return updateStaticRam("cancelOrder", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + return updateStaticRam("cancelOrder", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); } - updateDynamicRam("cancelOrder", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use cancelOrder()"); + updateDynamicRam("cancelOrder", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBuySellStockRamCost); + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasTixApiAccess) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "You don't have TIX API Access! Cannot use cancelOrder()"); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 8) { if (!(hasWallStreetSF && wallStreetSFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use cancelOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Cannot use cancelOrder(). You must either be in BitNode-8 or have Level 3 of Source-File 8"); } } - var stock = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; + var stock = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["SymbolToStockMap"][symbol]; if (stock == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into cancelOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid stock symbol passed into cancelOrder()"); } if (isNaN(shares) || isNaN(price)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid shares or price argument passed into cancelOrder(). Must be numeric"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid shares or price argument passed into cancelOrder(). Must be numeric"); } var orderType, orderPos; type = type.toLowerCase(); if (type.includes("limit") && type.includes("buy")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitBuy; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitBuy; } else if (type.includes("limit") && type.includes("sell")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitSell; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].LimitSell; } else if (type.includes("stop") && type.includes("buy")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopBuy; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopBuy; } else if (type.includes("stop") && type.includes("sell")) { - orderType = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopSell; + orderType = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["OrderTypes"].StopSell; } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Order Type passed into placeOrder()"); } pos = pos.toLowerCase(); if (pos.includes("l")) { - orderPos = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Long; + orderPos = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Long; } else if (pos.includes('s')) { - orderPos = _StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Short; + orderPos = _StockMarket__WEBPACK_IMPORTED_MODULE_21__["PositionTypes"].Short; } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid Position Type passed into placeOrder()"); } var params = { stock: stock, @@ -32207,13 +32217,13 @@ function NetscriptFunctions(workerScript) { type: orderType, pos: orderPos }; - return Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_21__["cancelOrder"])(params, workerScript); + return Object(_StockMarket__WEBPACK_IMPORTED_MODULE_21__["cancelOrder"])(params, workerScript); }, purchaseServer : function(hostname, ram) { if (workerScript.checkingRam) { - return updateStaticRam("purchaseServer", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); + return updateStaticRam("purchaseServer", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); } - updateDynamicRam("purchaseServer", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); + updateDynamicRam("purchaseServer", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); var hostnameStr = String(hostname); hostnameStr = hostnameStr.replace(/\s+/g, ''); if (hostnameStr == "") { @@ -32221,30 +32231,30 @@ function NetscriptFunctions(workerScript) { return ""; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.length >= _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerLimit) { - workerScript.scriptRef.log("ERROR: You have reached the maximum limit of " + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerLimit + + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.length >= _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerLimit) { + workerScript.scriptRef.log("ERROR: You have reached the maximum limit of " + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerLimit + " servers. You cannot purchase any more."); return ""; } ram = Math.round(ram); - if (isNaN(ram) || !Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__["powerOfTwo"])(ram)) { + if (isNaN(ram) || !Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__["powerOfTwo"])(ram)) { workerScript.scriptRef.log("ERROR: purchaseServer() failed due to invalid ram argument. Must be numeric and a power of 2"); return ""; } - if (ram > _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerMaxRam) { - workerScript.scriptRef.log("ERROR: purchasedServer() failed because specified RAM was too high. Maximum RAM on a purchased server is " + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerMaxRam + "GB"); + if (ram > _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerMaxRam) { + workerScript.scriptRef.log("ERROR: purchasedServer() failed because specified RAM was too high. Maximum RAM on a purchased server is " + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].PurchasedServerMaxRam + "GB"); return ""; } - var cost = ram * _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(cost)) { + var cost = ram * _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].BaseCostFor1GBOfRamServer; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(cost)) { workerScript.scriptRef.log("ERROR: Not enough money to purchase server. Need $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(cost, 2)); return ""; } - var newServ = new _Server_js__WEBPACK_IMPORTED_MODULE_18__["Server"]({ - ip: Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_31__["createRandomIp"])(), + var newServ = new _Server__WEBPACK_IMPORTED_MODULE_18__["Server"]({ + ip: Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_31__["createRandomIp"])(), hostname: hostnameStr, organizationName: "", isConnectedTo: false, @@ -32252,13 +32262,13 @@ function NetscriptFunctions(workerScript) { purchasedByPlayer: true, maxRam: ram, }); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["AddToAllServers"])(newServ); + Object(_Server__WEBPACK_IMPORTED_MODULE_18__["AddToAllServers"])(newServ); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.push(newServ.ip); - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer(); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.push(newServ.ip); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer(); homeComputer.serversOnNetwork.push(newServ.ip); newServ.serversOnNetwork.push(homeComputer.ip); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(cost); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseServer == null) { workerScript.scriptRef.log("Purchased new server with hostname " + newServ.hostname + " for $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["formatNumber"])(cost, 2)); } @@ -32266,12 +32276,12 @@ function NetscriptFunctions(workerScript) { }, deleteServer : function(hostname) { if (workerScript.checkingRam) { - return updateStaticRam("deleteServer", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); + return updateStaticRam("deleteServer", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); } - updateDynamicRam("deleteServer", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); + updateDynamicRam("deleteServer", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); var hostnameStr = String(hostname); hostnameStr = hostnameStr.replace(/\s\s+/g, ''); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["GetServerByHostname"])(hostnameStr); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["GetServerByHostname"])(hostnameStr); if (server == null) { workerScript.scriptRef.log("ERROR: Could not find server with hostname " + hostnameStr + ". deleteServer() failed"); return false; @@ -32305,10 +32315,10 @@ function NetscriptFunctions(workerScript) { //Delete from player's purchasedServers array var found = false; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.length; ++i) { - if (ip == _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers[i]) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.length; ++i) { + if (ip == _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers[i]) { found = true; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.splice(i, 1); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.splice(i, 1); break; } } @@ -32320,11 +32330,11 @@ function NetscriptFunctions(workerScript) { } //Delete from all servers - delete _Server_js__WEBPACK_IMPORTED_MODULE_18__["AllServers"][ip]; + delete _Server__WEBPACK_IMPORTED_MODULE_18__["AllServers"][ip]; //Delete from home computer found = false; - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer(); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer(); for (var i = 0; i < homeComputer.serversOnNetwork.length; ++i) { if (ip == homeComputer.serversOnNetwork[i]) { homeComputer.serversOnNetwork.splice(i, 1); @@ -32341,15 +32351,15 @@ function NetscriptFunctions(workerScript) { }, getPurchasedServers : function(hostname=true) { if (workerScript.checkingRam) { - return updateStaticRam("getPurchasedServers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); + return updateStaticRam("getPurchasedServers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); } - updateDynamicRam("getPurchasedServers", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); + updateDynamicRam("getPurchasedServers", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptPurchaseServerRamCost); var res = []; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.forEach(function(ip) { + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].purchasedServers.forEach(function(ip) { if (hostname) { - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find server in getPurchasedServers(). This is a bug please report to game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find server in getPurchasedServers(). This is a bug please report to game dev"); } res.push(server.hostname); } else { @@ -32360,25 +32370,25 @@ function NetscriptFunctions(workerScript) { }, write : function(port, data="", mode="a") { if (workerScript.checkingRam) { - return updateStaticRam("write", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + return updateStaticRam("write", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); } - updateDynamicRam("write", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + updateDynamicRam("write", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); if (!isNaN(port)) { //Write to port //Port 1-10 port = Math.round(port); - if (port < 1 || port > _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Trying to write to invalid port: " + port + ". Only ports 1-" + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid."); + if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Trying to write to invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid."); } - var port = _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; - if (port == null || !(port instanceof _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer"); } return port.write(data); } else if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(port)) { //Write to text file var fn = port; - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in write(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in write(). This is a bug please contact game dev"); } var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_23__["getTextFile"])(fn, server); if (txtFile == null) { @@ -32392,30 +32402,30 @@ function NetscriptFunctions(workerScript) { } return true; } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument passed in for write: " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument passed in for write: " + port); } }, read : function(port) { if (workerScript.checkingRam) { - return updateStaticRam("read", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + return updateStaticRam("read", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); } - updateDynamicRam("read", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + updateDynamicRam("read", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); if (!isNaN(port)) { //Read from port //Port 1-10 port = Math.round(port); - if (port < 1 || port > _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Trying to read from invalid port: " + port + ". Only ports 1-" + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid."); + if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Trying to read from invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid."); } - var port = _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; - if (port == null || !(port instanceof _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port.read(); } else if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(port)) { //Read from text file var fn = port; - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in read(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in read(). This is a bug please contact game dev"); } var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_23__["getTextFile"])(fn, server); if (txtFile !== null) { @@ -32424,83 +32434,83 @@ function NetscriptFunctions(workerScript) { return ""; } } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument passed in for read(): " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument passed in for read(): " + port); } }, peek : function(port) { if (workerScript.checkingRam) { - return updateStaticRam("peek", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + return updateStaticRam("peek", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); } - updateDynamicRam("peek", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + updateDynamicRam("peek", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); if (isNaN(port)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts); } port = Math.round(port); - if (port < 1 || port > _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts); + if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: peek() called with invalid argument. Must be a port number between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts); } - var port = _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; - if (port == null || !(port instanceof _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port.peek(); }, clear : function(port) { if (workerScript.checkingRam) { - return updateStaticRam("clear", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + return updateStaticRam("clear", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); } - updateDynamicRam("clear", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + updateDynamicRam("clear", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); if (!isNaN(port)) { //Clear port port = Math.round(port); - if (port < 1 || port > _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Trying to clear invalid port: " + port + ". Only ports 1-" + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid"); + if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Trying to clear invalid port: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid"); } - var port = _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; - if (port == null || !(port instanceof _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port.clear(); } else if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(port)) { //Clear text file var fn = port; - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (server == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in clear(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in clear(). This is a bug please contact game dev"); } var txtFile = Object(_TextFile__WEBPACK_IMPORTED_MODULE_23__["getTextFile"])(fn, server); if (txtFile != null) { txtFile.write(""); } } else { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument passed in for clear(): " + port); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid argument passed in for clear(): " + port); } return 0; }, getPortHandle : function(port) { if (workerScript.checkingRam) { - return updateStaticRam("getPortHandle", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost * 10); + return updateStaticRam("getPortHandle", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost * 10); } - updateDynamicRam("getPortHandle", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost * 10); + updateDynamicRam("getPortHandle", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost * 10); if (isNaN(port)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid argument passed into getPortHandle(). Must be an integer between 1 and " + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Invalid argument passed into getPortHandle(). Must be an integer between 1 and " + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts); } port = Math.round(port); - if (port < 1 || port > _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: getPortHandle() called with invalid port number: " + port + ". Only ports 1-" + _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid"); + if (port < 1 || port > _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: getPortHandle() called with invalid port number: " + port + ". Only ports 1-" + _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].NumNetscriptPorts + " are valid"); } - var port = _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; - if (port == null || !(port instanceof _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); + var port = _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["NetscriptPorts"][port-1]; + if (port == null || !(port instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_27__["NetscriptPort"])) { + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: Could not find port: " + port + ". This is a bug contact the game developer"); } return port; }, rm : function(fn) { if (workerScript.checkingRam) { - return updateStaticRam("rm", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + return updateStaticRam("rm", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); } - updateDynamicRam("rm", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); - var s = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); + updateDynamicRam("rm", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptReadWriteRamCost); + var s = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(workerScript.serverIp); if (s == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in clear(). This is a bug please contact game dev"); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Error getting Server for this script in clear(). This is a bug please contact game dev"); } if (fn.includes(".exe")) { @@ -32510,7 +32520,7 @@ function NetscriptFunctions(workerScript) { return true; } } - } else if (Object(_Script_js__WEBPACK_IMPORTED_MODULE_17__["isScriptFilename"])(fn)) { + } else if (Object(_Script__WEBPACK_IMPORTED_MODULE_17__["isScriptFilename"])(fn)) { for (var i = 0; i < s.scripts.length; ++i) { if (s.scripts[i].filename === fn) { //Check that the script isnt currently running @@ -32527,7 +32537,7 @@ function NetscriptFunctions(workerScript) { } else if (fn.endsWith(".lit")) { for (var i = 0; i < s.messages.length; ++i) { var f = s.messages[i]; - if (!(f instanceof _Message_js__WEBPACK_IMPORTED_MODULE_14__["Message"]) && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(f) && f === fn) { + if (!(f instanceof _Message__WEBPACK_IMPORTED_MODULE_14__["Message"]) && Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(f) && f === fn) { s.messages.splice(i, 1); return true; } @@ -32544,13 +32554,13 @@ function NetscriptFunctions(workerScript) { }, scriptRunning : function(scriptname, ip) { if (workerScript.checkingRam) { - return updateStaticRam("scriptRunning", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); + return updateStaticRam("scriptRunning", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); } - updateDynamicRam("scriptRunning", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("scriptRunning", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("scriptRunning() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "scriptRunning() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "scriptRunning() failed. Invalid IP or hostname passed in: " + ip); } for (var i = 0; i < server.runningScripts.length; ++i) { if (server.runningScripts[i].filename == scriptname) { @@ -32561,18 +32571,18 @@ function NetscriptFunctions(workerScript) { }, scriptKill : function(scriptname, ip) { if (workerScript.checkingRam) { - return updateStaticRam("scriptKill", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); + return updateStaticRam("scriptKill", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); } - updateDynamicRam("scriptKill", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("scriptKill", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptArbScriptRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("scriptKill() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "scriptKill() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "scriptKill() failed. Invalid IP or hostname passed in: " + ip); } var suc = false; for (var i = 0; i < server.runningScripts.length; ++i) { if (server.runningScripts[i].filename == scriptname) { - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(server.runningScripts[i], server.ip); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["killWorkerScript"])(server.runningScripts[i], server.ip); suc = true; } } @@ -32584,13 +32594,13 @@ function NetscriptFunctions(workerScript) { }, getScriptRam : function (scriptname, ip=workerScript.serverIp) { if (workerScript.checkingRam) { - return updateStaticRam("getScriptRam", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); + return updateStaticRam("getScriptRam", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); } - updateDynamicRam("getScriptRam", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getScriptRam", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getScriptRam() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getScriptRam() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getScriptRam() failed. Invalid IP or hostname passed in: " + ip); } for (var i = 0; i < server.scripts.length; ++i) { if (server.scripts[i].filename == scriptname) { @@ -32601,65 +32611,65 @@ function NetscriptFunctions(workerScript) { }, getHackTime : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getHackTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + return updateStaticRam("getHackTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); } - updateDynamicRam("getHackTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getHackTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getHackTime() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getHackTime() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getHackTime() failed. Invalid IP or hostname passed in: " + ip); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateHackingTime"])(server); //Returns seconds + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateHackingTime"])(server); //Returns seconds }, getGrowTime : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getGrowTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + return updateStaticRam("getGrowTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); } - updateDynamicRam("getGrowTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getGrowTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getGrowTime() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getGrowTime() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getGrowTime() failed. Invalid IP or hostname passed in: " + ip); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateGrowTime"])(server) / 1000; //Returns seconds + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateGrowTime"])(server) / 1000; //Returns seconds }, getWeakenTime : function(ip) { if (workerScript.checkingRam) { - return updateStaticRam("getWeakenTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + return updateStaticRam("getWeakenTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); } - updateDynamicRam("getWeakenTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + updateDynamicRam("getWeakenTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getWeakenTime() failed. Invalid IP or hostname passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getWeakenTime() failed. Invalid IP or hostname passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getWeakenTime() failed. Invalid IP or hostname passed in: " + ip); } - return Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateWeakenTime"])(server) / 1000; //Returns seconds + return Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["scriptCalculateWeakenTime"])(server) / 1000; //Returns seconds }, getScriptIncome : function(scriptname, ip) { if (workerScript.checkingRam) { - return updateStaticRam("getScriptIncome", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); + return updateStaticRam("getScriptIncome", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); } - updateDynamicRam("getScriptIncome", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); + updateDynamicRam("getScriptIncome", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); if (arguments.length === 0) { //Get total script income var res = []; - res.push(Object(_ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__["updateActiveScriptsItems"])()); - res.push(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].scriptProdSinceLastAug / (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].playtimeSinceLastAug/1000)); + res.push(Object(_ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__["updateActiveScriptsItems"])()); + res.push(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].scriptProdSinceLastAug / (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].playtimeSinceLastAug/1000)); return res; } else { //Get income for a particular script - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getScriptIncome() failed. Invalid IP or hostnamed passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getScriptIncome() failed. Invalid IP or hostnamed passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getScriptIncome() failed. Invalid IP or hostnamed passed in: " + ip); } var argsForScript = []; for (var i = 2; i < arguments.length; ++i) { argsForScript.push(arguments[i]); } - var runningScriptObj = Object(_Script_js__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(scriptname, argsForScript, server); + var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(scriptname, argsForScript, server); if (runningScriptObj == null) { - workerScript.scriptRef.log("getScriptIncome() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForScript)); + workerScript.scriptRef.log("getScriptIncome() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForScript)); return -1; } return runningScriptObj.onlineMoneyMade / runningScriptObj.onlineRunningTime; @@ -32667,29 +32677,29 @@ function NetscriptFunctions(workerScript) { }, getScriptExpGain : function(scriptname, ip) { if (workerScript.checkingRam) { - return updateStaticRam("getScriptExpGain", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); + return updateStaticRam("getScriptExpGain", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); } - updateDynamicRam("getScriptExpGain", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); + updateDynamicRam("getScriptExpGain", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetScriptRamCost); if (arguments.length === 0) { var total = 0; - for (var i = 0; i < _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["workerScripts"].length; ++i) { - total += (_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["workerScripts"][i].scriptRef.onlineExpGained / _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_24__["workerScripts"][i].scriptRef.onlineRunningTime); + for (var i = 0; i < _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["workerScripts"].length; ++i) { + total += (_NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["workerScripts"][i].scriptRef.onlineExpGained / _NetscriptWorker__WEBPACK_IMPORTED_MODULE_24__["workerScripts"][i].scriptRef.onlineRunningTime); } return total; } else { //Get income for a particular script - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_18__["getServer"])(ip); if (server == null) { workerScript.scriptRef.log("getScriptExpGain() failed. Invalid IP or hostnamed passed in: " + ip); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getScriptExpGain() failed. Invalid IP or hostnamed passed in: " + ip); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getScriptExpGain() failed. Invalid IP or hostnamed passed in: " + ip); } var argsForScript = []; for (var i = 2; i < arguments.length; ++i) { argsForScript.push(arguments[i]); } - var runningScriptObj = Object(_Script_js__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(scriptname, argsForScript, server); + var runningScriptObj = Object(_Script__WEBPACK_IMPORTED_MODULE_17__["findRunningScript"])(scriptname, argsForScript, server); if (runningScriptObj == null) { - workerScript.scriptRef.log("getScriptExpGain() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForScript)); + workerScript.scriptRef.log("getScriptExpGain() failed. No such script "+ scriptname + " on " + server.hostname + " with args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_30__["printArray"])(argsForScript)); return -1; } return runningScriptObj.onlineExpGained / runningScriptObj.onlineRunningTime; @@ -32697,54 +32707,54 @@ function NetscriptFunctions(workerScript) { }, getTimeSinceLastAug : function() { if (workerScript.checkingRam) { - return updateStaticRam("getTimeSinceLastAug", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + return updateStaticRam("getTimeSinceLastAug", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); } - updateDynamicRam("getTimeSinceLastAug", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].playtimeSinceLastAug; + updateDynamicRam("getTimeSinceLastAug", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptGetHackTimeRamCost); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].playtimeSinceLastAug; }, prompt : function(txt) { if (workerScript.checkingRam) {return 0;} - if (_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxOpen"]) { + if (_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxOpen"]) { workerScript.scriptRef.log("ERROR: confirm() failed because a pop-up dialog box is already open"); return false; } if (!Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(txt)) {txt = String(txt);} - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Yes"; noBtn.innerHTML = "No"; return new Promise(function(resolve, reject) { yesBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxClose"])(); resolve(true); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxClose"])(); resolve(false); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxCreate"])(txt); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_33__["yesNoBoxCreate"])(txt); }); }, /* Singularity Functions */ universityCourse : function(universityName, className) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("universityCourse", ramCost); } updateDynamicRam("universityCourse", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run universityCourse(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run universityCourse(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_Missions_js__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { + if (_Missions__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { workerScript.scriptRef.log("ERROR: universityCourse() failed because you are in the middle of a mission."); return; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.universityCourse == null) { workerScript.scriptRef.log(txt); } @@ -32752,30 +32762,30 @@ function NetscriptFunctions(workerScript) { var costMult, expMult; switch(universityName.toLowerCase()) { - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSummitUniversity.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSummitUniversity.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum) { workerScript.scriptRef.log("ERROR: You cannot study at Summit University because you are not in Aevum. universityCourse() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSummitUniversity; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSummitUniversity; costMult = 4; expMult = 3; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12RothmanUniversity.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12RothmanUniversity.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12) { workerScript.scriptRef.log("ERROR: You cannot study at Rothman University because you are not in Sector-12. universityCourse() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12RothmanUniversity; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12RothmanUniversity; costMult = 3; expMult = 2; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenZBInstituteOfTechnology.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenZBInstituteOfTechnology.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven) { workerScript.scriptRef.log("ERROR: You cannot study at ZB Institute of Technology because you are not in Volhaven. universityCourse() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenZBInstituteOfTechnology; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenZBInstituteOfTechnology; costMult = 5; expMult = 4; break; @@ -32787,28 +32797,28 @@ function NetscriptFunctions(workerScript) { var task; switch(className.toLowerCase()) { case "Study Computer Science".toLowerCase(): - task = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassStudyComputerScience; + task = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassStudyComputerScience; break; case "Data Structures".toLowerCase(): - task = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassDataStructures; + task = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassDataStructures; break; case "Networks".toLowerCase(): - task = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassNetworks; + task = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassNetworks; break; case "Algorithms".toLowerCase(): - task = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassAlgorithms; + task = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassAlgorithms; break; case "Management".toLowerCase(): - task = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassManagement; + task = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassManagement; break; case "Leadership".toLowerCase(): - task = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassLeadership; + task = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassLeadership; break; default: workerScript.scriptRef.log("Invalid class name: " + className + ". universityCourse() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, task); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, task); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.universityCourse == null) { workerScript.scriptRef.log("Started " + task + " at " + universityName); } @@ -32816,72 +32826,72 @@ function NetscriptFunctions(workerScript) { }, gymWorkout : function(gymName, stat) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("gymWorkout", ramCost); } updateDynamicRam("gymWorkout", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run gymWorkout(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run gymWorkout(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_Missions_js__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { + if (_Missions__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { workerScript.scriptRef.log("ERROR: gymWorkout() failed because you are in the middle of a mission."); return; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.gymWorkout == null) { workerScript.scriptRef.log(txt); } } var costMult, expMult; switch(gymName.toLowerCase()) { - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumCrushFitnessGym.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumCrushFitnessGym.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum) { workerScript.scriptRef.log("ERROR: You cannot workout at Crush Fitness because you are not in Aevum. gymWorkout() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumCrushFitnessGym; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumCrushFitnessGym; costMult = 3; expMult = 2; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSnapFitnessGym.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSnapFitnessGym.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum) { workerScript.scriptRef.log("ERROR: You cannot workout at Snap Fitness because you are not in Aevum. gymWorkout() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSnapFitnessGym; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSnapFitnessGym; costMult = 10; expMult = 5; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12IronGym.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12IronGym.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12) { workerScript.scriptRef.log("ERROR: You cannot workout at Iron Gym because you are not in Sector-12. gymWorkout() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12IronGym; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12IronGym; costMult = 1; expMult = 1; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12PowerhouseGym.toLowerCase(): - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12PowerhouseGym.toLowerCase(): + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12) { workerScript.scriptRef.log("ERROR: You cannot workout at Powerhouse Gym because you are not in Sector-12. gymWorkout() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12PowerhouseGym; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12PowerhouseGym; costMult = 20; expMult = 10; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenMilleniumFitnessGym: - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenMilleniumFitnessGym: + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city != _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven) { workerScript.scriptRef.log("ERROR: You cannot workout at Millenium Fitness Gym because you are not in Volhaven. gymWorkout() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenMilleniumFitnessGym; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenMilleniumFitnessGym; costMult = 7; expMult = 4; break; @@ -32893,19 +32903,19 @@ function NetscriptFunctions(workerScript) { switch(stat.toLowerCase()) { case "strength".toLowerCase(): case "str".toLowerCase(): - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymStrength); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymStrength); break; case "defense".toLowerCase(): case "def".toLowerCase(): - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymDefense); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymDefense); break; case "dexterity".toLowerCase(): case "dex".toLowerCase(): - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymDexterity); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymDexterity); break; case "agility".toLowerCase(): case "agi".toLowerCase(): - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymAgility); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startClass(costMult, expMult, _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ClassGymAgility); break; default: workerScript.scriptRef.log("Invalid stat: " + stat + ". gymWorkout() failed"); @@ -32918,33 +32928,33 @@ function NetscriptFunctions(workerScript) { }, travelToCity(cityname) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("travelToCity", ramCost); } updateDynamicRam("travelToCity", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run travelToCity(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run travelToCity(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } switch(cityname) { - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum: - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Chongqing: - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12: - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].NewTokyo: - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Ishima: - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven: - if(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TravelCost)) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum: + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Chongqing: + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12: + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].NewTokyo: + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Ishima: + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven: + if(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TravelCost)) { workerScript.scriptRef.log("ERROR: not enough money to travel with travelToCity()."); - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: not enough money to travel with travelToCity()."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "ERROR: not enough money to travel with travelToCity()."); } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TravelCost); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city = cityname; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TravelCost); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city = cityname; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.travelToCity == null) { workerScript.scriptRef.log("Traveled to " + cityname); } @@ -32956,64 +32966,64 @@ function NetscriptFunctions(workerScript) { }, purchaseTor() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("purchaseTor", ramCost); } updateDynamicRam("purchaseTor", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run purchaseTor(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run purchaseTor(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"]["Darkweb Server"] != null) { + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"]["Darkweb Server"] != null) { workerScript.scriptRef.log("You already have a TOR router! purchaseTor() failed"); return false; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TorRouterCost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TorRouterCost)) { workerScript.scriptRef.log("ERROR: You cannot afford to purchase a Tor router. purchaseTor() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TorRouterCost); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].TorRouterCost); - var darkweb = new _Server_js__WEBPACK_IMPORTED_MODULE_18__["Server"]({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_31__["createRandomIp"])(), hostname:"darkweb", organizationName:"", + var darkweb = new _Server__WEBPACK_IMPORTED_MODULE_18__["Server"]({ + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_31__["createRandomIp"])(), hostname:"darkweb", organizationName:"", isConnectedTo:false, adminRights:false, purchasedByPlayer:false, maxRam:1 }); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_18__["AddToAllServers"])(darkweb); - _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"].addIp("Darkweb Server", darkweb.ip); + Object(_Server__WEBPACK_IMPORTED_MODULE_18__["AddToAllServers"])(darkweb); + _SpecialServerIps__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"].addIp("Darkweb Server", darkweb.ip); const purchaseTor = document.getElementById("location-purchase-tor"); purchaseTor.setAttribute("class", "a-link-button-bought"); purchaseTor.innerHTML = "TOR Router - Purchased"; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer().serversOnNetwork.push(darkweb.ip); - darkweb.serversOnNetwork.push(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer().ip); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer().serversOnNetwork.push(darkweb.ip); + darkweb.serversOnNetwork.push(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer().ip); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseTor == null) { workerScript.scriptRef.log("You have purchased a Tor router!"); } return true; }, purchaseProgram(programName) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("purchaseProgram", ramCost); } updateDynamicRam("purchaseProgram", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run purchaseProgram(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run purchaseProgram(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"]["Darkweb Server"] == null) { + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"]["Darkweb Server"] == null) { workerScript.scriptRef.log("ERROR: You do not have the TOR router. purchaseProgram() failed."); return false; } @@ -33021,8 +33031,8 @@ function NetscriptFunctions(workerScript) { programName = programName.toLowerCase(); let item = null; - for(const key in _DarkWeb_js__WEBPACK_IMPORTED_MODULE_8__["DarkWebItems"]) { - const i = _DarkWeb_js__WEBPACK_IMPORTED_MODULE_8__["DarkWebItems"][key]; + for(const key in _DarkWeb__WEBPACK_IMPORTED_MODULE_8__["DarkWebItems"]) { + const i = _DarkWeb__WEBPACK_IMPORTED_MODULE_8__["DarkWebItems"][key]; if(i.program.toLowerCase() == programName) { item = i; } @@ -33033,114 +33043,114 @@ function NetscriptFunctions(workerScript) { return false; } - if(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(item.price)) { + if(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(item.price)) { workerScript.scriptRef.log("Not enough money to purchase " + item.program); return false; } - if(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(item.program)) { + if(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(item.program)) { workerScript.scriptRef.log('You already have the '+item.program+' program'); return true; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(item.price); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer().programs.push(item.program); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(item.price); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer().programs.push(item.program); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.purchaseProgram == null) { workerScript.scriptRef.log("You have purchased the "+item.program+" program. The new program can be found on your home computer."); } return true; }, getStats : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 4; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 4; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getStats", ramCost); } updateDynamicRam("getStats", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getStats(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getStats(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return {}; } } return { - hacking: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill, - strength: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].strength, - defense: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].defense, - dexterity: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].dexterity, - agility: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].agility, - charisma: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].charisma, - intelligence: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].intelligence + hacking: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hacking_skill, + strength: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].strength, + defense: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].defense, + dexterity: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].dexterity, + agility: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].agility, + charisma: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].charisma, + intelligence: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].intelligence } }, getCharacterInformation : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 4; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 4; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getCharacterInformation", ramCost); } updateDynamicRam("getCharacterInformation", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCharacterInformation(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCharacterInformation(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return {}; } } var companyPositionTitle = ""; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition instanceof _Company_js__WEBPACK_IMPORTED_MODULE_5__["CompanyPosition"]) { - companyPositionTitle = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.positionName; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition instanceof _Company__WEBPACK_IMPORTED_MODULE_5__["CompanyPosition"]) { + companyPositionTitle = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.positionName; } return { - bitnode: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN, - company: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyName, + bitnode: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN, + company: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyName, jobTitle: companyPositionTitle, - city: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city, - factions: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].factions.slice(), - tor: _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"].hasOwnProperty("Darkweb Server"), - timeWorked: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].timeWorked, - workHackExpGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workHackExpGained, - workStrExpGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workStrExpGained, - workDefExpGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workDefExpGained, - workDexExpGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workDexExpGained, - workAgiExpGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workAgiExpGained, - workChaExpGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workChaExpGained, - workRepGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workRepGained, - workMoneyGain: _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].workMoneyGained, + city: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city, + factions: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].factions.slice(), + tor: _SpecialServerIps__WEBPACK_IMPORTED_MODULE_20__["SpecialServerIps"].hasOwnProperty("Darkweb Server"), + timeWorked: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].timeWorked, + workHackExpGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workHackExpGained, + workStrExpGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workStrExpGained, + workDefExpGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workDefExpGained, + workDexExpGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workDexExpGained, + workAgiExpGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workAgiExpGained, + workChaExpGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workChaExpGained, + workRepGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workRepGained, + workMoneyGain: _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].workMoneyGained, }; }, isBusy : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 4; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 4; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("isBusy", ramCost); } updateDynamicRam("isBusy", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run isBusy(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run isBusy(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return; } } - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking; + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking; }, stopAction : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 2; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn1RamCost / 2; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("stopAction", ramCost); } updateDynamicRam("stopAction", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 1)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run stopAction(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run stopAction(). It is a Singularity Function and requires SourceFile-4 (level 1) to run."); return false; } } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.stopAction == null) { workerScript.scriptRef.log(txt); } @@ -33149,154 +33159,154 @@ function NetscriptFunctions(workerScript) { return false; }, upgradeHomeRam : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("upgradeHomeRam", ramCost); } updateDynamicRam("upgradeHomeRam", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run upgradeHomeRam(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run upgradeHomeRam(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - const cost = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getUpgradeHomeRamCost(); + const cost = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getUpgradeHomeRamCost(); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(cost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].money.lt(cost)) { workerScript.scriptRef.log("ERROR: upgradeHomeRam() failed because you don't have enough money"); return false; } - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer(); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getHomeComputer(); homeComputer.maxRam *= 2; - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].loseMoney(cost); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.upgradeHomeRam == null) { workerScript.scriptRef.log("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM."); } return true; }, getUpgradeHomeRamCost : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 2; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 2; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getUpgradeHomeRamCost", ramCost); } updateDynamicRam("getUpgradeHomeRamCost", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getUpgradeHomeRamCost(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getUpgradeHomeRamCost(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].getUpgradeHomeRamCost(); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].getUpgradeHomeRamCost(); }, workForCompany : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("workForCompany", ramCost); } updateDynamicRam("workForCompany", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run workForCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run workForCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - if (_Missions_js__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { + if (_Missions__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { workerScript.scriptRef.log("ERROR: workForCompany() failed because you are in the middle of a mission."); return; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition == "" || !(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition instanceof _Company_js__WEBPACK_IMPORTED_MODULE_5__["CompanyPosition"])) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition == "" || !(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition instanceof _Company__WEBPACK_IMPORTED_MODULE_5__["CompanyPosition"])) { workerScript.scriptRef.log("ERROR: workForCompany() failed because you do not have a job"); return false; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.workForCompany == null) { workerScript.scriptRef.log(txt); } } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.isPartTimeJob()) { - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startWorkPartTime(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.isPartTimeJob()) { + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startWorkPartTime(); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startWork(); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startWork(); } if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.workForCompany == null) { - workerScript.scriptRef.log("Began working at " + _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyName + " as a " + _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.positionName); + workerScript.scriptRef.log("Began working at " + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyName + " as a " + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.positionName); } return true; }, applyToCompany : function(companyName, field) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("applyToCompany", ramCost); } updateDynamicRam("applyToCompany", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run applyToCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run applyToCompany(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - if (!Object(_Company_js__WEBPACK_IMPORTED_MODULE_5__["companyExists"])(companyName)) { + if (!Object(_Company__WEBPACK_IMPORTED_MODULE_5__["companyExists"])(companyName)) { workerScript.scriptRef.log("ERROR: applyToCompany() failed because specified company " + companyName + " does not exist."); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = companyName; + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = companyName; var res; switch (field.toLowerCase()) { case "software": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSoftwareJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSoftwareJob(true); break; case "software consultant": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSoftwareConsultantJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSoftwareConsultantJob(true); break; case "it": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForItJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForItJob(true); break; case "security engineer": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSecurityEngineerJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSecurityEngineerJob(true); break; case "network engineer": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForNetworkEngineerJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForNetworkEngineerJob(true); break; case "business": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForBusinessJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForBusinessJob(true); break; case "business consultant": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForBusinessConsultantJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForBusinessConsultantJob(true); break; case "security": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSecurityJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForSecurityJob(true); break; case "agent": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForAgentJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForAgentJob(true); break; case "employee": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForEmployeeJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForEmployeeJob(true); break; case "part-time employee": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForPartTimeEmployeeJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForPartTimeEmployeeJob(true); break; case "waiter": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForWaiterJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForWaiterJob(true); break; case "part-time waiter": - res = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForPartTimeWaiterJob(true); + res = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].applyForPartTimeWaiterJob(true); break; default: workerScript.scriptRef.log("ERROR: Invalid job passed into applyToCompany: " + field + ". applyToCompany() failed"); @@ -33309,7 +33319,7 @@ function NetscriptFunctions(workerScript) { } if (res) { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.applyToCompany == null) { - workerScript.scriptRef.log("You were offered a new job at " + companyName + " as a " + _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.positionName); + workerScript.scriptRef.log("You were offered a new job at " + companyName + " as a " + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].companyPosition.positionName); } } else { if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.applyToCompany == null) { @@ -33319,145 +33329,145 @@ function NetscriptFunctions(workerScript) { return res; }, getCompanyRep : function(companyName) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 2; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 2; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getCompanyRep", ramCost); } updateDynamicRam("getCompanyRep", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCompanyRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCompanyRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - var company = _Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"][companyName]; - if (company == null || !(company instanceof _Company_js__WEBPACK_IMPORTED_MODULE_5__["Company"])) { + var company = _Company__WEBPACK_IMPORTED_MODULE_5__["Companies"][companyName]; + if (company == null || !(company instanceof _Company__WEBPACK_IMPORTED_MODULE_5__["Company"])) { workerScript.scriptRef.log("ERROR: Invalid companyName passed into getCompanyRep(): " + companyName); return -1; } return company.playerReputation; }, getCompanyFavor : function(companyName) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 4; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 4; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getCompanyFavor", ramCost); } updateDynamicRam("getCompanyFavor", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCompanyFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCompanyFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - var company = _Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"][companyName]; - if (company == null || !(company instanceof _Company_js__WEBPACK_IMPORTED_MODULE_5__["Company"])) { + var company = _Company__WEBPACK_IMPORTED_MODULE_5__["Companies"][companyName]; + if (company == null || !(company instanceof _Company__WEBPACK_IMPORTED_MODULE_5__["Company"])) { workerScript.scriptRef.log("ERROR: Invalid companyName passed into getCompanyFavor(): " + companyName); return -1; } return company.favor; }, checkFactionInvitations : function() { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("checkFactionInvitations", ramCost); } updateDynamicRam("checkFactionInvitations", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run checkFactionInvitations(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run checkFactionInvitations(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } //Make a copy of Player.factionInvitations - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.slice(); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.slice(); }, joinFaction : function(name) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("joinFaction", ramCost); } updateDynamicRam("joinFaction", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run joinFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run joinFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } - if (!Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { + if (!Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { workerScript.scriptRef.log("ERROR: Faction specified in joinFaction() does not exist."); return false; } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.includes(name)) { + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.includes(name)) { workerScript.scriptRef.log("ERROR: Cannot join " + name + " Faction because you have not been invited. joinFaction() failed"); return false; } - var index = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.indexOf(name); + var index = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.indexOf(name); if (index === -1) { //Redundant and should never happen... workerScript.scriptRef.log("ERROR: Cannot join " + name + " Faction because you have not been invited. joinFaction() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.splice(index, 1); - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Factions"][name]; - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["joinFaction"])(fac); - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].factionInvitations.splice(index, 1); + var fac = _Faction__WEBPACK_IMPORTED_MODULE_11__["Factions"][name]; + Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["joinFaction"])(fac); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.joinFaction == null) { workerScript.scriptRef.log("Joined the " + name + " faction."); } return true; }, workForFaction : function(name, type) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("workForFaction", ramCost); } updateDynamicRam("workForFaction", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run workForFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run workForFaction(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return false; } } // if the player is in a gang and the target faction is any of the gang faction, fail - if(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].inGang() && _Gang_js__WEBPACK_IMPORTED_MODULE_10__["AllGangs"][name] !== undefined) { + if(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].inGang() && _Gang__WEBPACK_IMPORTED_MODULE_10__["AllGangs"][name] !== undefined) { workerScript.scriptRef.log("ERROR: Faction specified in workForFaction() does not offer work at the moment."); return; } - if (_Missions_js__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { + if (_Missions__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { workerScript.scriptRef.log("ERROR: workForFaction() failed because you are in the middle of a mission."); return; } - if (!Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { + if (!Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { workerScript.scriptRef.log("ERROR: Faction specified in workForFaction() does not exist."); return false; } - if (!_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].factions.includes(name)) { + if (!_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].factions.includes(name)) { workerScript.scriptRef.log("ERROR: workForFaction() failed because you are not a member of " + name); return false; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.workForFaction == null) { workerScript.scriptRef.log(txt); } } - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Factions"][name]; + var fac = _Faction__WEBPACK_IMPORTED_MODULE_11__["Factions"][name]; //Arrays listing factions that allow each time of work var hackAvailable = ["Illuminati", "Daedalus", "The Covenant", "ECorp", "MegaCorp", "Bachman & Associates", "Blade Industries", "NWO", "Clarke Incorporated", @@ -33487,7 +33497,7 @@ function NetscriptFunctions(workerScript) { workerScript.scriptRef.log("ERROR: Cannot carry out hacking contracts for " + fac.name + ". workForFaction() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startFactionHackWork(fac); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startFactionHackWork(fac); workerScript.scriptRef.log("Started carrying out hacking contracts for " + fac.name); return true; case "field": @@ -33497,7 +33507,7 @@ function NetscriptFunctions(workerScript) { workerScript.scriptRef.log("ERROR: Cannot carry out field missions for " + fac.name + ". workForFaction() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startFactionFieldWork(fac); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startFactionFieldWork(fac); workerScript.scriptRef.log("Started carrying out field missions for " + fac.name); return true; case "security": @@ -33507,7 +33517,7 @@ function NetscriptFunctions(workerScript) { workerScript.scriptRef.log("ERROR: Cannot serve as security detail for " + fac.name + ". workForFaction() failed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startFactionSecurityWork(fac); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startFactionSecurityWork(fac); workerScript.scriptRef.log("Started serving as security details for " + fac.name); return true; default: @@ -33516,66 +33526,66 @@ function NetscriptFunctions(workerScript) { return true; }, getFactionRep : function(name) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 4; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost / 4; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getFactionRep", ramCost); } updateDynamicRam("getFactionRep", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getFactionRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getFactionRep(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return -1; } } - if (!Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { + if (!Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { workerScript.scriptRef.log("ERROR: Faction specified in getFactionRep() does not exist."); return -1; } - return _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Factions"][name].playerReputation; + return _Faction__WEBPACK_IMPORTED_MODULE_11__["Factions"][name].playerReputation; }, getFactionFavor : function(name) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn2RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getFactionFavor", ramCost); } updateDynamicRam("getFactionFavor", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 2)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getFactionFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getFactionFavor(). It is a Singularity Function and requires SourceFile-4 (level 2) to run."); return -1; } } - if (!Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { + if (!Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(name)) { workerScript.scriptRef.log("ERROR: Faction specified in getFactionFavor() does not exist."); return -1; } - return _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Factions"][name].favor; + return _Faction__WEBPACK_IMPORTED_MODULE_11__["Factions"][name].favor; }, createProgram : function(name) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("createProgram", ramCost); } updateDynamicRam("createProgram", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run createProgram(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run createProgram(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } - if (_Missions_js__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { + if (_Missions__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { workerScript.scriptRef.log("ERROR: createProgram() failed because you are in the middle of a mission."); return; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.createProgram == null) { workerScript.scriptRef.log(txt); } @@ -33584,9 +33594,9 @@ function NetscriptFunctions(workerScript) { name = name.toLowerCase(); let p = null; - for (const key in _CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"]) { - if(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"][key].name.toLowerCase() == name) { - p = _CreateProgram_js__WEBPACK_IMPORTED_MODULE_7__["Programs"][key]; + for (const key in _CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"]) { + if(_CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"][key].name.toLowerCase() == name) { + p = _CreateProgram__WEBPACK_IMPORTED_MODULE_7__["Programs"][key]; } } @@ -33595,7 +33605,7 @@ function NetscriptFunctions(workerScript) { return false; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(p.name)) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].hasProgram(p.name)) { workerScript.scriptRef.log('ERROR: createProgram() failed because you already have the ' + p.name + ' program'); return false; } @@ -33605,134 +33615,134 @@ function NetscriptFunctions(workerScript) { return false } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].startCreateProgramWork(p.name, p.create.time, p.create.level); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].startCreateProgramWork(p.name, p.create.time, p.create.level); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.createProgram == null) { workerScript.scriptRef.log("Began creating program: " + name); } return true; }, commitCrime : function(crimeRoughName) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("commitCrime", ramCost); } updateDynamicRam("commitCrime", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run commitCrime(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run commitCrime(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return; } } - if (_Missions_js__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { + if (_Missions__WEBPACK_IMPORTED_MODULE_15__["inMission"]) { workerScript.scriptRef.log("ERROR: commitCrime() failed because you are in the middle of a mission."); return; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { - var txt = _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].isWorking) { + var txt = _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].singularityStopWork(); if (workerScript.disableLogs.ALL == null && workerScript.disableLogs.commitCrime == null) { workerScript.scriptRef.log(txt); } } //Set Location to slums - switch(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].city) { - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum: - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSlums; + switch(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].city) { + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Aevum: + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].AevumSlums; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Chongqing: - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].ChongqingSlums; + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Chongqing: + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].ChongqingSlums; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12: - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12Slums; + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12: + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Sector12Slums; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].NewTokyo: - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].NewTokyoSlums; + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].NewTokyo: + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].NewTokyoSlums; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Ishima: - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].IshimaSlums; + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Ishima: + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].IshimaSlums; break; - case _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven: - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location_js__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenSlums; + case _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].Volhaven: + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].location = _Location__WEBPACK_IMPORTED_MODULE_13__["Locations"].VolhavenSlums; break; default: console.log("Invalid Player.city value"); } - const crime = Object(_Crimes_js__WEBPACK_IMPORTED_MODULE_3__["findCrime"])(crimeRoughName.toLowerCase()); + const crime = Object(_Crimes__WEBPACK_IMPORTED_MODULE_3__["findCrime"])(crimeRoughName.toLowerCase()); if(crime == null) { // couldn't find crime - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid crime passed into commitCrime(): " + crime); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid crime passed into commitCrime(): " + crime); } if(workerScript.disableLogs.ALL == null && workerScript.disableLogs.commitCrime == null) { workerScript.scriptRef.log("Attempting to commit crime: "+crime.name+"..."); } - return crime.commit(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].CrimeSingFnDivider, {workerscript: workerScript}); + return crime.commit(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].CrimeSingFnDivider, {workerscript: workerScript}); }, getCrimeChance : function(crimeRoughName) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getCrimeChance", ramCost); } updateDynamicRam("getCrimeChance", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCrimeChance(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getCrimeChance(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return; } } - const crime = Object(_Crimes_js__WEBPACK_IMPORTED_MODULE_3__["findCrime"])(crimeRoughName.toLowerCase()); + const crime = Object(_Crimes__WEBPACK_IMPORTED_MODULE_3__["findCrime"])(crimeRoughName.toLowerCase()); if(crime == null) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid crime passed into getCrimeChance(): " + crime); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Invalid crime passed into getCrimeChance(): " + crime); } return crime.successRate(); }, getOwnedAugmentations : function(purchased=false) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getOwnedAugmentations", ramCost); } updateDynamicRam("getOwnedAugmentations", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getOwnedAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getOwnedAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return []; } } var res = []; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations.length; ++i) { - res.push(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations[i].name); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations.length; ++i) { + res.push(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations[i].name); } if (purchased) { - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations.length; ++i) { - res.push(_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations[i].name); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations.length; ++i) { + res.push(_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations[i].name); } } return res; }, getAugmentationsFromFaction : function(facname) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getAugmentationsFromFaction", ramCost); } updateDynamicRam("getAugmentationsFromFaction", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getAugmentationsFromFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getAugmentationsFromFaction(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return []; } } - if (!Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(facname)) { + if (!Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["factionExists"])(facname)) { workerScript.scriptRef.log("ERROR: getAugmentationsFromFaction() failed. Invalid faction name passed in (this is case-sensitive): " + facname); return []; } - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Factions"][facname]; + var fac = _Faction__WEBPACK_IMPORTED_MODULE_11__["Factions"][facname]; var res = []; for (var i = 0; i < fac.augmentations.length; ++i) { res.push(fac.augmentations[i]); @@ -33740,43 +33750,43 @@ function NetscriptFunctions(workerScript) { return res; }, getAugmentationCost : function(name) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("getAugmentationCost", ramCost); } updateDynamicRam("getAugmentationCost", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getAugmentationCost(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run getAugmentationCost(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } - if (!Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(name)) { + if (!Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(name)) { workerScript.scriptRef.log("ERROR: getAugmentationCost() failed. Invalid Augmentation name passed in (note: this is case-sensitive): " + name); return [-1, -1]; } - var aug = _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][name]; + var aug = _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][name]; return [aug.baseRepRequirement, aug.baseCost]; }, purchaseAugmentation : function(faction, name) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("purchaseAugmentation", ramCost); } updateDynamicRam("purchaseAugmentation", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run purchaseAugmentation(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run purchaseAugmentation(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Factions"][faction]; - if (fac == null || !(fac instanceof _Faction_js__WEBPACK_IMPORTED_MODULE_11__["Faction"])) { + var fac = _Faction__WEBPACK_IMPORTED_MODULE_11__["Factions"][faction]; + if (fac == null || !(fac instanceof _Faction__WEBPACK_IMPORTED_MODULE_11__["Faction"])) { workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because of invalid faction name: " + faction); return false; } @@ -33786,26 +33796,26 @@ function NetscriptFunctions(workerScript) { return false; } - var aug = _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][name]; - if (aug == null || !(aug instanceof _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentation"])) { + var aug = _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][name]; + if (aug == null || !(aug instanceof _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentation"])) { workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because of invalid augmentation name: " + name); return false; } var isNeuroflux = false; - if (aug.name === _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].NeuroFluxGovernor) { + if (aug.name === _Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].NeuroFluxGovernor) { isNeuroflux = true; } if (!isNeuroflux) { - for (var j = 0; j < _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations.length; ++j) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations[j].name === aug.name) { + for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations.length; ++j) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations[j].name === aug.name) { workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because you already have " + name); return false; } } - for (var j = 0; j < _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations.length; ++j) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations[j].name === aug.name) { + for (var j = 0; j < _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations.length; ++j) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].augmentations[j].name === aug.name) { workerScript.scriptRef.log("ERROR: purchaseAugmentation() failed because you already have " + name); return false; } @@ -33817,36 +33827,36 @@ function NetscriptFunctions(workerScript) { return false; } - var res = Object(_Faction_js__WEBPACK_IMPORTED_MODULE_11__["purchaseAugmentation"])(aug, fac, true); + var res = Object(_Faction__WEBPACK_IMPORTED_MODULE_11__["purchaseAugmentation"])(aug, fac, true); workerScript.scriptRef.log(res); if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_32__["isString"])(res) && res.startsWith("You purchased")) { - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); return true; } else { return false; } }, installAugmentations : function(cbScript) { - var ramCost = _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} + var ramCost = _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptSingularityFn3RamCost; + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN !== 4) {ramCost *= 8;} if (workerScript.checkingRam) { return updateStaticRam("installAugmentations", ramCost); } updateDynamicRam("installAugmentations", ramCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN != 4) { if (!(hasSingularitySF && singularitySFLvl >= 3)) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run installAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Cannot run installAugmentations(). It is a Singularity Function and requires SourceFile-4 (level 3) to run."); return false; } } - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations.length === 0) { + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].queuedAugmentations.length === 0) { workerScript.scriptRef.log("ERROR: installAugmentations() failed because you do not have any Augmentations to be installed"); return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].gainIntelligenceExp(_Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].IntelligenceSingFnBaseExpGain); workerScript.scriptRef.log("Installing Augmentations. This will cause this script to be killed"); - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["installAugmentations"])(cbScript); + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["installAugmentations"])(cbScript); return true; }, @@ -33854,292 +33864,292 @@ function NetscriptFunctions(workerScript) { bladeburner : { getContractNames : function() { if (workerScript.checkingRam) { - return updateStaticRam("getContractNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + return updateStaticRam("getContractNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); } - updateDynamicRam("getContractNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getContractNamesNetscriptFn(); + updateDynamicRam("getContractNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getContractNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getContractNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getContractNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getOperationNames : function() { if (workerScript.checkingRam) { - return updateStaticRam("getOperationNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + return updateStaticRam("getOperationNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); } - updateDynamicRam("getOperationNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getOperationNamesNetscriptFn(); + updateDynamicRam("getOperationNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getOperationNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getOperationNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getOperationNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getBlackOpNames : function() { if (workerScript.checkingRam) { - return updateStaticRam("getBlackOpNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + return updateStaticRam("getBlackOpNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); } - updateDynamicRam("getBlackOpNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getBlackOpNamesNetscriptFn(); + updateDynamicRam("getBlackOpNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getBlackOpNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getBlackOpNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getBlackOpNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getGeneralActionNames : function() { if (workerScript.checkingRam) { - return updateStaticRam("getGeneralActionNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + return updateStaticRam("getGeneralActionNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); } - updateDynamicRam("getGeneralActionNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getGeneralActionNamesNetscriptFn(); + updateDynamicRam("getGeneralActionNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getGeneralActionNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getGeneralActionNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getGeneralActionNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillNames : function() { if (workerScript.checkingRam) { - return updateStaticRam("getSkillNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + return updateStaticRam("getSkillNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); } - updateDynamicRam("getSkillNames", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getSkillNamesNetscriptFn(); + updateDynamicRam("getSkillNames", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 10); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getSkillNamesNetscriptFn(); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getSkillNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getSkillNames() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, startAction : function(type="", name="") { if (workerScript.checkingRam) { - return updateStaticRam("startAction", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("startAction", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("startAction", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("startAction", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.startActionNetscriptFn(type, name, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.startActionNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.startAction() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.startAction() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "startAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "startAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, stopBladeburnerAction : function() { if (workerScript.checkingRam) { - return updateStaticRam("stopBladeburnerAction", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 2); + return updateStaticRam("stopBladeburnerAction", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 2); } - updateDynamicRam("stopBladeburnerAction", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 2); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.resetAction(); + updateDynamicRam("stopBladeburnerAction", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost / 2); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.resetAction(); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "stopBladeburnerAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "stopBladeburnerAction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionTime : function(type="", name="") { if (workerScript.checkingRam) { - return updateStaticRam("getActionTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getActionTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getActionTime", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getActionTime", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getActionTimeNetscriptFn(type, name, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getActionTimeNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getActionTime() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getActionTime() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getActionTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getActionTime() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionEstimatedSuccessChance : function(type="", name="") { if (workerScript.checkingRam) { - return updateStaticRam("getActionEstimatedSuccessChance", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getActionEstimatedSuccessChance", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getActionEstimatedSuccessChance", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getActionEstimatedSuccessChance", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getActionEstimatedSuccessChanceNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getActionEstimatedSuccessChance() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getActionEstimatedSuccessChance() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getActionEstimatedSuccessChance() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getActionEstimatedSuccessChance() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getActionCountRemaining : function(type="", name="") { if (workerScript.checkingRam) { - return updateStaticRam("getActionCountRemaining", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getActionCountRemaining", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getActionCountRemaining", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getActionCountRemaining", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getActionCountRemainingNetscriptFn(type, name, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getActionCountRemainingNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getActionCountRemaining() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getActionCountRemaining() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getActionCountRemaining() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getActionCountRemaining() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getRank : function() { if (workerScript.checkingRam) { - return updateStaticRam("getRank", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getRank", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getRank", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.rank; + updateDynamicRam("getRank", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.rank; } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getRank() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getRank() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillPoints : function() { if (workerScript.checkingRam) { - return updateStaticRam("getSkillPoints", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getSkillPoints", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getSkillPoints", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.skillPoints; + updateDynamicRam("getSkillPoints", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.skillPoints; } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getSkillPoints() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getSkillPoints() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getSkillLevel : function(skillName="") { if (workerScript.checkingRam) { - return updateStaticRam("getSkillLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getSkillLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getSkillLevel", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getSkillLevel", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getSkillLevelNetscriptFn(skillName, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getSkillLevelNetscriptFn(skillName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getSkillLevel() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getSkillLevel() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getSkillLevel() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getSkillLevel() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, upgradeSkill : function(skillName) { if (workerScript.checkingRam) { - return updateStaticRam("upgradeSkill", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("upgradeSkill", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("upgradeSkill", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("upgradeSkill", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.upgradeSkillNetscriptFn(skillName, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.upgradeSkillNetscriptFn(skillName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.upgradeSkill() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.upgradeSkill() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "upgradeSkill() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "upgradeSkill() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getTeamSize : function(type="", name="") { if (workerScript.checkingRam) { - return updateStaticRam("getTeamSize", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getTeamSize", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getTeamSizeNetscriptFn(type, name, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getTeamSizeNetscriptFn(type, name, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getTeamSize() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getTeamSize() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, setTeamSize : function(type="", name="", size) { if (workerScript.checkingRam) { - return updateStaticRam("setTeamSize", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("setTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("setTeamSize", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("setTeamSize", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.setTeamSizeNetscriptFn(type, name, size, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.setTeamSizeNetscriptFn(type, name, size, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.setTeamSize() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.setTeamSize() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "setTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "setTeamSize() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCityEstimatedPopulation : function(cityName) { if (workerScript.checkingRam) { - return updateStaticRam("getCityEstimatedPopulation", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getCityEstimatedPopulation", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getCityEstimatedPopulation", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getCityEstimatedPopulation", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getCityEstimatedPopulationNetscriptFn(cityName, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getCityEstimatedPopulationNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getCityEstimatedPopulation() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getCityEstimatedPopulation() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getCityEstimatedPopulation() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getCityEstimatedPopulation() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCityEstimatedCommunities : function(cityName) { if (workerScript.checkingRam) { - return updateStaticRam("getCityEstimatedCommunities", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getCityEstimatedCommunities", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getCityEstimatedCommunities", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getCityEstimatedCommunities", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getCityEstimatedCommunitiesNetscriptFn(cityName, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getCityEstimatedCommunitiesNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getCityEstimatedCommunities() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getCityEstimatedCommunities() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getCityEstimatedCommunities() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getCityEstimatedCommunities() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getCityChaos : function(cityName) { if (workerScript.checkingRam) { - return updateStaticRam("getCityChaos", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getCityChaos", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getCityChaos", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("getCityChaos", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getCityChaosNetscriptFn(cityName, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.getCityChaosNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getCityChaos() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.getCityChaos() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getCityChaos() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getCityChaos() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, switchCity : function(cityName) { if (workerScript.checkingRam) { - return updateStaticRam("switchCity", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("switchCity", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("switchCity", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + updateDynamicRam("switchCity", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { try { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.switchCityNetscriptFn(cityName, workerScript); + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.switchCityNetscriptFn(cityName, workerScript); } catch(e) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.switchCity() failed with exception: " + e); + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "Bladeburner.switchCity() failed with exception: " + e); } } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "switchCity() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "switchCity() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, getStamina : function() { if (workerScript.checkingRam) { - return updateStaticRam("getStamina", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("getStamina", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("getStamina", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return [_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.stamina, _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.maxStamina]; + updateDynamicRam("getStamina", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return [_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.stamina, _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.maxStamina]; } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getStamina() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "getStamina() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, joinBladeburnerFaction : function() { if (workerScript.checkingRam) { - return updateStaticRam("joinBladeburnerFaction", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + return updateStaticRam("joinBladeburnerFaction", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); } - updateDynamicRam("joinBladeburnerFaction", _Constants_js__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { - return _Player_js__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.joinBladeburnerFactionNetscriptFn(workerScript); + updateDynamicRam("joinBladeburnerFaction", _Constants__WEBPACK_IMPORTED_MODULE_6__["CONSTANTS"].ScriptBladeburnerApiBaseRamCost); + if (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_4__["Bladeburner"] && (_Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bitNodeN === 7 || hasBladeburner2079SF)) { + return _Player__WEBPACK_IMPORTED_MODULE_16__["Player"].bladeburner.joinBladeburnerFactionNetscriptFn(workerScript); } - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "joinBladeburnerFaction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_25__["makeRuntimeRejectMsg"])(workerScript, "joinBladeburnerFaction() failed because you do not currently have access to the Bladeburner API. This is either because you are not currently employed " + "at the Bladeburner division or because you do not have Source-File 7"); }, } @@ -34648,8 +34658,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createFconf", function() { return createFconf; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseFconfSettings", function() { return parseFconfSettings; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadFconf", function() { return loadFconf; }); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn.js */ 35); -/* harmony import */ var _utils_acorn_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/acorn */ 35); +/* harmony import */ var _utils_acorn__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_utils_acorn__WEBPACK_IMPORTED_MODULE_0__); var FconfSettings = { @@ -34672,7 +34682,7 @@ var FconfComments = { //Parse Fconf settings from the config text //Throws an exception if parsing fails function parseFconfSettings(config) { - var ast = Object(_utils_acorn_js__WEBPACK_IMPORTED_MODULE_0__["parse"])(config, {sourceType:"module"}); + var ast = Object(_utils_acorn__WEBPACK_IMPORTED_MODULE_0__["parse"])(config, {sourceType:"module"}); var queue = []; queue.push(ast); while (queue.length != 0) { @@ -34681,7 +34691,7 @@ function parseFconfSettings(config) { case "BlockStatement": case "Program": for (var i = 0; i < exp.body.length; ++i) { - if (exp.body[i] instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_0__["Node"]) { + if (exp.body[i] instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_0__["Node"]) { queue.push(exp.body[i]); } } @@ -34706,7 +34716,7 @@ function parseFconfSettings(config) { for (var prop in exp) { if (exp.hasOwnProperty(prop)) { - if (exp[prop] instanceof _utils_acorn_js__WEBPACK_IMPORTED_MODULE_0__["Node"]) { + if (exp[prop] instanceof _utils_acorn__WEBPACK_IMPORTED_MODULE_0__["Node"]) { queue.push(exp[prop]); } } @@ -34792,12 +34802,12 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inMission", function() { return inMission; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setInMission", function() { return setInMission; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "currMission", function() { return currMission; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__); /* harmony import */ var jsplumb__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! jsplumb */ 201); @@ -35006,9 +35016,9 @@ function HackingMission(rep, fac) { this.jsplumbinstance = null; - this.difficulty = rep / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionRepToDiffConversion + 1; + this.difficulty = rep / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionRepToDiffConversion + 1; console.log("difficulty: " + this.difficulty); - this.reward = 250 + (rep / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionRepToRewardConversion); + this.reward = 250 + (rep / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionRepToRewardConversion); } HackingMission.prototype.init = function() { @@ -35016,12 +35026,12 @@ HackingMission.prototype.init = function() { this.createPageDom(); //Create player starting nodes - var home = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].getHomeComputer() + var home = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].getHomeComputer() for (var i = 0; i < home.cpuCores; ++i) { var stats = { - atk: (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill / 7.5) + 30, - def: (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill / 20), - hp: (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill / 4), + atk: (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill / 7.5) + 30, + def: (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill / 20), + hp: (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill / 4), }; this.playerCores.push(new Node(NodeTypes.Core, stats)); this.playerCores[i].setControlledByPlayer(); @@ -35032,16 +35042,16 @@ HackingMission.prototype.init = function() { //Randomly generate enemy nodes (CPU and Firewall) based on difficulty var numNodes = Math.min(8, Math.max(1, Math.round(this.difficulty / 4))); var numFirewalls = Math.min(20, - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(Math.round(this.difficulty/3), Math.round(this.difficulty/3) + 1)); - var numDatabases = Math.min(10, Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(1, Math.round(this.difficulty / 3) + 1)); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(Math.round(this.difficulty/3), Math.round(this.difficulty/3) + 1)); + var numDatabases = Math.min(10, Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(1, Math.round(this.difficulty / 3) + 1)); var totalNodes = numNodes + numFirewalls + numDatabases; var xlimit = 7 - Math.floor(totalNodes / 8); - var randMult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["addOffset"])(0.8 + (this.difficulty / 5), 10); + var randMult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["addOffset"])(0.8 + (this.difficulty / 5), 10); for (var i = 0; i < numNodes; ++i) { var stats = { - atk: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(80, 86), - def: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(5, 10), - hp: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(210, 230) + atk: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(80, 86), + def: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(5, 10), + hp: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(210, 230) } this.enemyCores.push(new Node(NodeTypes.Core, stats)); this.enemyCores[i].setControlledByEnemy(); @@ -35050,8 +35060,8 @@ HackingMission.prototype.init = function() { for (var i = 0; i < numFirewalls; ++i) { var stats = { atk: 0, - def: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(10, 20), - hp: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(275, 300) + def: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(10, 20), + hp: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(275, 300) } this.enemyNodes.push(new Node(NodeTypes.Firewall, stats)); this.enemyNodes[i].setControlledByEnemy(); @@ -35060,8 +35070,8 @@ HackingMission.prototype.init = function() { for (var i = 0; i < numDatabases; ++i) { var stats = { atk: 0, - def: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(30, 55), - hp: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(210, 275) + def: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(30, 55), + hp: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(210, 275) } var node = new Node(NodeTypes.Database, stats); node.setControlledByEnemy(); @@ -35077,7 +35087,7 @@ HackingMission.prototype.createPageDom = function() { var container = document.getElementById("mission-container"); var favorMult = 1 + (this.faction.favor / 100); - var gain = this.reward * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * favorMult; + var gain = this.reward * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * favorMult; var headerText = document.createElement("p"); headerText.innerHTML = "You are about to start a hacking mission! You will gain " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(gain, 3) + " faction reputation with " + this.faction.name + @@ -35095,7 +35105,7 @@ HackingMission.prototype.createPageDom = function() { inGameGuideBtn.style.display = "inline-block"; inGameGuideBtn.classList.add("hack-mission-header-element"); inGameGuideBtn.addEventListener("click", function() { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionHowToPlay); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionHowToPlay); return false; }); @@ -35451,7 +35461,7 @@ HackingMission.prototype.setNodePosition = function(nodeObj, x, y) { } HackingMission.prototype.setNodeRandomPosition = function(nodeObj, xlimit=0) { - var i = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.availablePositions.length - 1); + var i = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.availablePositions.length - 1); if (this.availablePositions[i][1] < xlimit) { //Recurse if not within limit return this.setNodeRandomPosition(nodeObj, xlimit); @@ -35475,22 +35485,22 @@ HackingMission.prototype.createMap = function() { for (var x = 0; x < 8; ++x) { for (var y = 0; y < 8; ++y) { if (!(this.map[x][y] instanceof Node)) { - var node, type = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, 2); - var randMult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["addOffset"])(0.85 + (this.difficulty / 2), 15); + var node, type = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, 2); + var randMult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["addOffset"])(0.85 + (this.difficulty / 2), 15); switch (type) { case 0: //Spam var stats = { atk: 0, - def: averageAttack * 1.1 + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(15, 45), - hp: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(200, 225) + def: averageAttack * 1.1 + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(15, 45), + hp: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(200, 225) } node = new Node(NodeTypes.Spam, stats); break; case 1: //Transfer var stats = { atk: 0, - def: averageAttack * 1.1 + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(15, 45), - hp: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(250, 275) + def: averageAttack * 1.1 + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(15, 45), + hp: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(250, 275) } node = new Node(NodeTypes.Transfer, stats); break; @@ -35498,8 +35508,8 @@ HackingMission.prototype.createMap = function() { default: var stats = { atk: 0, - def: averageAttack * 1.1 + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(30, 70), - hp: randMult * Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(300, 320) + def: averageAttack * 1.1 + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(30, 70), + hp: randMult * Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(300, 320) } node = new Node(NodeTypes.Shield, stats); break; @@ -35761,7 +35771,7 @@ HackingMission.prototype.nodeReachableByEnemy = function(node) { HackingMission.prototype.start = function() { this.started = true; this.initJsPlumb(); - var startBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("hack-mission-start-btn"); + var startBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("hack-mission-start-btn"); startBtn.classList.remove("a-link-button"); startBtn.classList.add("a-link-button-inactive"); } @@ -35946,7 +35956,7 @@ HackingMission.prototype.process = function(numCycles=1) { }); //Update timer and check if player lost - this.time -= (storedCycles * _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"]._idleSpeed); + this.time -= (storedCycles * _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"]._idleSpeed); if (this.time <= 0) { this.finishMission(false); return; @@ -35987,35 +35997,35 @@ HackingMission.prototype.processNode = function(nodeObj, numCycles=1) { //Calculations are per second, so divide everything by 5 var calcStats = false, plyr = nodeObj.plyrCtrl; - var enmyHacking = this.difficulty * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionDifficultyToHacking; + var enmyHacking = this.difficulty * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionDifficultyToHacking; switch(nodeObj.action) { case NodeActions.Attack: if (targetNode == null) {break;} if (nodeObj.conn == null) {break;} - var dmg = this.calculateAttackDamage(atk, def, plyr ? _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill : enmyHacking); + var dmg = this.calculateAttackDamage(atk, def, plyr ? _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill : enmyHacking); targetNode.hp -= (dmg/5 * numCycles); break; case NodeActions.Scan: if (targetNode == null) {break;} if (nodeObj.conn == null) {break;} - var eff = this.calculateScanEffect(atk, def, plyr ? _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill : enmyHacking); + var eff = this.calculateScanEffect(atk, def, plyr ? _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill : enmyHacking); targetNode.def -= (eff/5 * numCycles); calcStats = true; break; case NodeActions.Weaken: if (targetNode == null) {break;} if (nodeObj.conn == null) {break;} - var eff = this.calculateWeakenEffect(atk, def, plyr ? _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill : enmyHacking); + var eff = this.calculateWeakenEffect(atk, def, plyr ? _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill : enmyHacking); targetNode.atk -= (eff/5 * numCycles); calcStats = true; break; case NodeActions.Fortify: - var eff = this.calculateFortifyEffect(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill); + var eff = this.calculateFortifyEffect(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill); nodeObj.def += (eff/5 * numCycles); calcStats = true; break; case NodeActions.Overflow: - var eff = this.calculateOverflowEffect(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill); + var eff = this.calculateOverflowEffect(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill); if (nodeObj.def < eff) {break;} nodeObj.def -= (eff/5 * numCycles); nodeObj.atk += (eff/5 * numCycles); @@ -36117,7 +36127,7 @@ HackingMission.prototype.processNode = function(nodeObj, numCycles=1) { if (conqueredByPlayer) { swapNodes(isMiscNode ? this.miscNodes : this.enemyNodes, this.playerNodes, targetNode); //Conquering spam node increases time limit - this.time += _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionSpamTimeIncrease; + this.time += _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionSpamTimeIncrease; } else { swapNodes(isMiscNode ? this.miscNodes : this.playerNodes, this.enemyNodes, targetNode); } @@ -36128,13 +36138,13 @@ HackingMission.prototype.processNode = function(nodeObj, numCycles=1) { if (conqueredByPlayer) { swapNodes(isMiscNode ? this.miscNodes : this.enemyNodes, this.playerNodes, targetNode); this.playerCores.forEach(function(node) { - node.atk *= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionTransferAttackIncrease; + node.atk *= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionTransferAttackIncrease; }); this.configurePlayerNodeElement(targetNode.el); } else { swapNodes(isMiscNode ? this.miscNodes : this.playerNodes, this.enemyNodes, targetNode); this.enemyCores.forEach(function(node) { - node.atk *= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionTransferAttackIncrease; + node.atk *= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionTransferAttackIncrease; }); this.configureEnemyNodeElement(targetNode.el); } @@ -36154,7 +36164,7 @@ HackingMission.prototype.processNode = function(nodeObj, numCycles=1) { if (isMiscNode) { //&& conqueredByPlayer) { this.miscNodes.forEach((node)=>{ if (node.targetedCount === 0) { - node.def *= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionMiscDefenseIncrease; + node.def *= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].HackingMissionMiscDefenseIncrease; } }); } @@ -36177,7 +36187,7 @@ HackingMission.prototype.enemyAISelectAction = function(nodeObj) { if (nodeObj.conn == null) { if (this.miscNodes.length === 0) { //Randomly pick a player node and attack it if its reachable - var rand = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.playerNodes.length-1); + var rand = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.playerNodes.length-1); var node; if (this.playerNodes.length === 0) { node = null; @@ -36193,7 +36203,7 @@ HackingMission.prototype.enemyAISelectAction = function(nodeObj) { ++node.targetedCount; } else { //Randomly pick a player core and attack it if its reachable - rand = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.playerCores.length-1); + rand = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.playerCores.length-1); if (this.playerCores.length === 0) { return; //No Misc Nodes, no player Nodes, no Player cores. Player lost } else { @@ -36211,7 +36221,7 @@ HackingMission.prototype.enemyAISelectAction = function(nodeObj) { } } else { //Randomly pick a misc node and attack it if its reachable - var rand = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.miscNodes.length-1); + var rand = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, this.miscNodes.length-1); var node = this.miscNodes[rand]; if (this.nodeReachableByEnemy(node)) { nodeObj.conn = this.jsplumbinstance.connect({ @@ -36312,14 +36322,14 @@ HackingMission.prototype.finishMission = function(win) { var favorMult = 1 + (this.faction.favor / 100); console.log("Hacking mission base reward: " + this.reward); console.log("favorMult: " + favorMult); - console.log("rep mult: " + _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult); - var gain = this.reward * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * favorMult; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Mission won! You earned " + + console.log("rep mult: " + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult); + var gain = this.reward * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * favorMult; + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Mission won! You earned " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(gain, 3) + " reputation with " + this.faction.name); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainIntelligenceExp(this.difficulty * _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceHackingMissionBaseExpGain); + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainIntelligenceExp(this.difficulty * _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].IntelligenceHackingMissionBaseExpGain); this.faction.playerReputation += gain; } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Mission lost/forfeited! You did not gain any faction reputation."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Mission lost/forfeited! You did not gain any faction reputation."); } //Clear mission container @@ -36331,8 +36341,8 @@ HackingMission.prototype.finishMission = function(win) { //Return to Faction page document.getElementById("mainmenu-container").style.visibility = "visible"; document.getElementById("character-overview-wrapper").style.visibility = "visible"; - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionContent(); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_2__["displayFactionContent"])(this.faction.name); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionContent(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_2__["displayFactionContent"])(this.faction.name); } @@ -36355,18 +36365,18 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AllGangs", function() { return AllGangs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetGangs", function() { return resetGangs; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteGangDisplayContent", function() { return deleteGangDisplayContent; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -36381,7 +36391,7 @@ __webpack_require__.r(__webpack_exports__); /* Gang.js */ //Switch between territory and management screen with 1 and 2 $(document).keydown(function(event) { - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Gang && !_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoBoxOpen"]) { + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage == _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Gang && !_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoBoxOpen"]) { if (gangMemberFilter != null && gangMemberFilter === document.activeElement) {return;} if (event.keyCode === 49) { if(gangTerritorySubpage.style.display === "block") { @@ -36402,7 +36412,7 @@ $(document).mousedown(function(event) { if (gangMemberUpgradeBoxOpened) { if ( $(event.target).closest("#" + contentId).get(0) == null ) { //Delete the box - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["removeElement"])(gangMemberUpgradeBox); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["removeElement"])(gangMemberUpgradeBox); gangMemberUpgradeBox = null; gangMemberUpgradeBoxContent = null; gangMemberUpgradeBoxOpened = false; @@ -36478,20 +36488,20 @@ function resetGangs() { } function loadAllGangs(saveString) { - AllGangs = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Reviver"]); + AllGangs = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Reviver"]); } //Power is an estimate of a gang's ability to gain/defend territory let gangStoredPowerCycles = 0; function processAllGangPowerGains(numCycles=1) { - if (!_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} + if (!_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} gangStoredPowerCycles += numCycles; if (gangStoredPowerCycles < 150) {return;} - var playerGangName = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName; + var playerGangName = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName; for (var name in AllGangs) { if (AllGangs.hasOwnProperty(name)) { if (name == playerGangName) { - AllGangs[name].power += _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.calculatePower(); + AllGangs[name].power += _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.calculatePower(); } else { var gain = Math.random() * 0.02; //TODO Adjust as necessary AllGangs[name].power += (gain); @@ -36504,14 +36514,14 @@ function processAllGangPowerGains(numCycles=1) { let gangStoredTerritoryCycles = 0; function processAllGangTerritory(numCycles=1) { - if (!_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} + if (!_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} gangStoredTerritoryCycles += numCycles; - if (gangStoredTerritoryCycles < _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangTerritoryUpdateTimer) {return;} + if (gangStoredTerritoryCycles < _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangTerritoryUpdateTimer) {return;} for (var i = 0; i < GangNames.length; ++i) { - var other = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(0, GangNames.length-1); + var other = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(0, GangNames.length-1); while(other == i) { - other = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(0, GangNames.length-1); + other = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getRandomInt"])(0, GangNames.length-1); } var thisPwr = AllGangs[GangNames[i]].power; var otherPwr = AllGangs[GangNames[other]].power; @@ -36532,7 +36542,7 @@ function processAllGangTerritory(numCycles=1) { } } - gangStoredTerritoryCycles -= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangTerritoryUpdateTimer; + gangStoredTerritoryCycles -= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangTerritoryUpdateTimer; } /* faction - Name of corresponding faction @@ -36586,12 +36596,12 @@ Gang.prototype.processGains = function(numCycles=1) { var gain = respectGains * this.storedCycles; this.respect += (gain); //Faction reputation gains is respect gain divided by some constant - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_2__["Factions"][this.facName]; - if (!(fac instanceof _Faction_js__WEBPACK_IMPORTED_MODULE_2__["Faction"])) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("ERROR: Could not get Faction associates with your gang. This is a bug, please report to game dev"); + var fac = _Faction__WEBPACK_IMPORTED_MODULE_2__["Factions"][this.facName]; + if (!(fac instanceof _Faction__WEBPACK_IMPORTED_MODULE_2__["Faction"])) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("ERROR: Could not get Faction associates with your gang. This is a bug, please report to game dev"); } else { var favorMult = 1 + (fac.favor / 100); - fac.playerReputation += ((_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * gain * favorMult) / _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangRespectToReputationRatio); + fac.playerReputation += ((_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * gain * favorMult) / _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangRespectToReputationRatio); } } else { @@ -36608,7 +36618,7 @@ Gang.prototype.processGains = function(numCycles=1) { console.log("ERROR: wantedLevelGains is NaN"); } if (!isNaN(moneyGains)) { - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainMoney(moneyGains * this.storedCycles); + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainMoney(moneyGains * this.storedCycles); } else { console.log("ERROR: respectGains is NaN"); } @@ -36656,20 +36666,20 @@ Gang.prototype.autoUnassignMemberFromTask = function(taskName) { } Gang.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("Gang", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("Gang", this); } Gang.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(Gang, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(Gang, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.Gang = Gang; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.Gang = Gang; /*** Gang Member object ***/ function GangMember(name) { this.name = name; this.task = GangMemberTasks["Unassigned"]; //GangMemberTask object - this.city = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].city; + this.city = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].city; this.hack = 1; this.str = 1; @@ -36743,9 +36753,9 @@ GangMember.prototype.calculateRespectGain = function() { (task.chaWeight/100) * this.cha; statWeight -= (3.5 * task.difficulty); if (statWeight <= 0) {return 0;} - var territoryMult = AllGangs[_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory; + var territoryMult = AllGangs[_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory; if (territoryMult <= 0) {return 0;} - var respectMult = (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect) / (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect + _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted); + var respectMult = (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect) / (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted); return 12 * task.baseRespect * statWeight * territoryMult * respectMult; } @@ -36760,7 +36770,7 @@ GangMember.prototype.calculateWantedLevelGain = function() { (task.chaWeight/100) * this.cha; statWeight -= (3.5 * task.difficulty); if (statWeight <= 0) {return 0;} - var territoryMult = AllGangs[_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory; + var territoryMult = AllGangs[_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory; if (territoryMult <= 0) {return 0;} if (task.baseWanted < 0) { return task.baseWanted * statWeight * territoryMult; @@ -36780,9 +36790,9 @@ GangMember.prototype.calculateMoneyGain = function() { (task.chaWeight/100) * this.cha; statWeight -= (3.5 * task.difficulty); if (statWeight <= 0) {return 0;} - var territoryMult = AllGangs[_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory; + var territoryMult = AllGangs[_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory; if (territoryMult <= 0) {return 0;} - var respectMult = (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect) / (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect + _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted); + var respectMult = (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect) / (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted); return 5 * task.baseMoney * statWeight * territoryMult * respectMult; } @@ -36798,14 +36808,14 @@ GangMember.prototype.gainExperience = function(numCycles=1) { } GangMember.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("GangMember", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("GangMember", this); } GangMember.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(GangMember, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(GangMember, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.GangMember = GangMember; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.GangMember = GangMember; //Defines tasks that Gang Members can work on function GangMemberTask(name="", desc="", @@ -36833,14 +36843,14 @@ function GangMemberTask(name="", desc="", } GangMemberTask.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("GangMemberTask", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("GangMemberTask", this); } GangMemberTask.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(GangMemberTask, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(GangMemberTask, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.GangMemberTask = GangMemberTask; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.GangMemberTask = GangMemberTask; //TODO Human trafficking and an equivalent hacking crime let GangMemberTasks = { @@ -37063,14 +37073,14 @@ GangMemberUpgrade.prototype.apply = function(member) { } GangMemberUpgrade.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("GangMemberUpgrade", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_toJSON"])("GangMemberUpgrade", this); } GangMemberUpgrade.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(GangMemberUpgrade, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Generic_fromJSON"])(GangMemberUpgrade, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.GangMemberUpgrade = GangMemberUpgrade; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_5__["Reviver"].constructors.GangMemberUpgrade = GangMemberUpgrade; let GangMemberUpgrades = { "Baseball Bat" : new GangMemberUpgrade("Baseball Bat", @@ -37125,21 +37135,21 @@ function createGangMemberUpgradeBox(initialFilter="") { } for (var i = 1; i < gangMemberUpgradeBoxElements.length; ++i) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["removeElement"])(gangMemberUpgradeBoxElements[i]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["removeElement"])(gangMemberUpgradeBoxElements[i]); } gangMemberUpgradeBoxElements = [gangMemberUpgradeBoxFilter]; var filter = gangMemberUpgradeBoxFilter.value.toString(); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].name.indexOf(filter) > -1 || _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].task.name.indexOf(filter) > -1) { - var newPanel = createGangMemberUpgradePanel(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i]); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].name.indexOf(filter) > -1 || _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].task.name.indexOf(filter) > -1) { + var newPanel = createGangMemberUpgradePanel(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i]); gangMemberUpgradeBoxContent.appendChild(newPanel); gangMemberUpgradeBoxElements.push(newPanel); } } } else { //New popup - gangMemberUpgradeBoxFilter = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("input", { + gangMemberUpgradeBoxFilter = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("input", { type:"text", placeholder:"Filter gang members", value:initialFilter, onkeyup:()=>{ @@ -37151,13 +37161,13 @@ function createGangMemberUpgradeBox(initialFilter="") { gangMemberUpgradeBoxElements = [gangMemberUpgradeBoxFilter]; var filter = gangMemberUpgradeBoxFilter.value.toString(); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].name.indexOf(filter) > -1 || _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].task.name.indexOf(filter) > -1) { - gangMemberUpgradeBoxElements.push(createGangMemberUpgradePanel(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i])); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].name.indexOf(filter) > -1 || _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].task.name.indexOf(filter) > -1) { + gangMemberUpgradeBoxElements.push(createGangMemberUpgradePanel(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i])); } } - gangMemberUpgradeBox = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createPopup"])(boxId, gangMemberUpgradeBoxElements); + gangMemberUpgradeBox = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createPopup"])(boxId, gangMemberUpgradeBoxElements); gangMemberUpgradeBoxContent = document.getElementById(boxId + "-content"); gangMemberUpgradeBoxOpened = true; } @@ -37165,16 +37175,16 @@ function createGangMemberUpgradeBox(initialFilter="") { //Create upgrade panels for each individual Gang Member function createGangMemberUpgradePanel(memberObj) { - var container = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var container = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { border:"1px solid white", }); - var header = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("h1", { + var header = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("h1", { innerText:memberObj.name + " (" + memberObj.task.name + ")" }); container.appendChild(header); - var text = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("pre", { + var text = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("pre", { fontSize:"14px", display: "inline-block", width:"20%", innerText: "Hack: " + memberObj.hack + " (x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(memberObj.hack_mult, 2) + ")\n" + @@ -37193,13 +37203,13 @@ function createGangMemberUpgradePanel(memberObj) { console.log("ERR: Could not find this upgrade: " + memberObj.upgrades[i]); continue; } - var e = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var e = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { border:"1px solid white", innerText:memberObj.upgrades[i], margin:"1px", padding:"1px", tooltip:upg.desc, fontSize:"12px", }); ownedUpgradesElements.push(e); } - var ownedUpgrades = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var ownedUpgrades = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { display:"inline-block", marginLeft:"6px", width:"75%", innerText:"Purchased Upgrades:", }); for (var i = 0; i < ownedUpgradesElements.length; ++i) { @@ -37207,14 +37217,14 @@ function createGangMemberUpgradePanel(memberObj) { } container.appendChild(text); container.appendChild(ownedUpgrades); - container.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + container.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); //Upgrade buttons. Only show upgrades that can be afforded var weaponUpgrades = [], armorUpgrades = [], vehicleUpgrades = [], rootkitUpgrades = []; for (var upgName in GangMemberUpgrades) { if (GangMemberUpgrades.hasOwnProperty(upgName)) { var upg = GangMemberUpgrades[upgName]; - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].money.lt(upg.cost) || memberObj.upgrades.includes(upgName)) {continue;} + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].money.lt(upg.cost) || memberObj.upgrades.includes(upgName)) {continue;} switch (upg.type) { case "w": weaponUpgrades.push(upg); @@ -37234,10 +37244,10 @@ function createGangMemberUpgradePanel(memberObj) { } } - var weaponDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); - var armorDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); - var vehicleDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); - var rootkitDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); + var weaponDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); + var armorDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); + var vehicleDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); + var rootkitDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", {width:"20%", display:"inline-block",}); var upgrades = [weaponUpgrades, armorUpgrades, vehicleUpgrades, rootkitUpgrades]; var divs = [weaponDiv, armorDiv, vehicleDiv, rootkitDiv]; @@ -37247,14 +37257,14 @@ function createGangMemberUpgradePanel(memberObj) { for (var j = 0; j < upgradeArray.length; ++j) { var upg = upgradeArray[j]; (function (upg, div, memberObj) { - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { innerText:upg.name + " - " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default()(upg.cost).format("$0.000a"), class:"a-link-button", margin:"2px", padding:"2px", display:"block", fontSize:"12px", tooltip:upg.desc, clickListener:()=>{ - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].money.lt(upg.cost)) {return false;} - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].loseMoney(upg.cost); + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].money.lt(upg.cost)) {return false;} + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].loseMoney(upg.cost); memberObj.upgrades.push(upg.name); upg.apply(memberObj); var initFilterValue = gangMemberUpgradeBoxFilter.value.toString(); @@ -37300,28 +37310,28 @@ function displayGangContent() { gangContentCreated = true; //Create gang container - gangContainer = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + gangContainer = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { id:"gang-container", class:"generic-menupage-container", }); //Get variables - var facName = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName, - members = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members, - wanted = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted, - respect = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect; + var facName = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName, + members = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members, + wanted = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted, + respect = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect; //Back button - gangContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + gangContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Back", clickListener:()=>{ - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionContent(); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_2__["displayFactionContent"])(facName); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionContent(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_2__["displayFactionContent"])(facName); return false; } })); //Buttons to switch between panels - managementButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + managementButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { id:"gang-management-subpage-button", class:"a-link-button-inactive", display:"inline-block", innerHTML: "Gang Management (1)", clickListener:()=>{ @@ -37335,7 +37345,7 @@ function displayGangContent() { return false; } }) - territoryButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + territoryButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { id:"gang-territory-subpage-button", class:"a-link-button", display:"inline-block", innerHTML:"Gang Territory (2)", clickListener:()=>{ @@ -37353,17 +37363,17 @@ function displayGangContent() { gangContainer.appendChild(territoryButton); //Subpage for managing gang members - gangManagementSubpage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + gangManagementSubpage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { display:"block", id:"gang-management-subpage", }); var lowerWantedTask = ""; - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.isHackingGang) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.isHackingGang) { lowerWantedTask = "Ethical Hacking"; } else { lowerWantedTask = "Vigilante Justice"; } - gangDesc = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {width:"70%", + gangDesc = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {width:"70%", innerHTML: "This page is used to manage your gang members and get an overview of your " + "gang's stats.

" + @@ -37380,50 +37390,50 @@ function displayGangContent() { }); gangManagementSubpage.appendChild(gangDesc); - gangInfo = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id:"gang-info", width:"70%"}); + gangInfo = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id:"gang-info", width:"70%"}); gangManagementSubpage.appendChild(gangInfo); - gangRecruitMemberButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + gangRecruitMemberButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { id:"gang-management-recruit-member-btn", class:"a-link-button-inactive", innerHTML:"Recruit Gang Member", display:"inline-block", margin:"10px", clickListener:()=>{ - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxGetYesButton"])(), noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerHTML = "Recruit Gang Member"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", ()=>{ - var name = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxGetInput"])(); + var name = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxGetInput"])(); if (name === "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You must enter a name for your Gang member!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You must enter a name for your Gang member!"); } else { - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { - if (name == _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].name) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You already have a gang member with this name!"); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { + if (name == _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i].name) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You already have a gang member with this name!"); return false; } } var member = new GangMember(name); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.push(member); + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.push(member); createGangMemberDisplayElement(member); updateGangContent(); } - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxCreate"])("Please enter a name for your new Gang member:"); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_9__["yesNoTxtInpBoxCreate"])("Please enter a name for your new Gang member:"); return false; } }); gangManagementSubpage.appendChild(gangRecruitMemberButton); //Text for how much reputation is required for recruiting next memberList - gangRecruitRequirementText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {color:"red", id:"gang-recruit-requirement-text"}); + gangRecruitRequirementText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {color:"red", id:"gang-recruit-requirement-text"}); gangManagementSubpage.appendChild(gangRecruitRequirementText); //Gang Member List management buttons (Expand/Collapse All, select a single member) - gangManagementSubpage.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); - gangExpandAllButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + gangManagementSubpage.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangExpandAllButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerHTML:"Expand All", clickListener:()=>{ @@ -37437,7 +37447,7 @@ function displayGangContent() { return false; } }); - gangCollapseAllButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + gangCollapseAllButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerHTML:"Collapse All", clickListener:()=>{ @@ -37451,13 +37461,13 @@ function displayGangContent() { return false; } }); - gangMemberFilter = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("input", { + gangMemberFilter = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("input", { type:"text", placeholder:"Filter gang members", margin:"5px", padding:"5px", onkeyup:()=>{ displayGangMemberList(); } }); - gangManageEquipmentButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + gangManageEquipmentButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerHTML:"Manage Equipment", clickListener:()=>{ @@ -37470,17 +37480,17 @@ function displayGangContent() { gangManagementSubpage.appendChild(gangManageEquipmentButton); //Gang Member list - gangMemberList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", {id:"gang-member-list"}); + gangMemberList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("ul", {id:"gang-member-list"}); displayGangMemberList(); gangManagementSubpage.appendChild(gangMemberList); //Subpage for seeing gang territory information - gangTerritorySubpage = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + gangTerritorySubpage = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { id:"gang-territory-subpage", display:"none" }); //Info text for territory page - gangTerritoryDescText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { + gangTerritoryDescText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { width:"70%", innerHTML:"This page shows how much territory your Gang controls. This statistic is listed as a percentage, " + "which represents how much of the total territory you control.

" + @@ -37494,9 +37504,9 @@ function displayGangContent() { }); gangTerritorySubpage.appendChild(gangTerritoryDescText); - var territoryBorder = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("fieldset", {width:"50%", display:"inline-block"}); + var territoryBorder = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("fieldset", {width:"50%", display:"inline-block"}); - gangTerritoryInfoText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id:"gang-territory-info"}); + gangTerritoryInfoText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id:"gang-territory-info"}); territoryBorder.appendChild(gangTerritoryInfoText); gangTerritorySubpage.appendChild(territoryBorder); @@ -37510,8 +37520,8 @@ function displayGangContent() { } function displayGangMemberList() { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["removeChildrenFromElement"])(gangMemberList); - var members = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members; + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["removeChildrenFromElement"])(gangMemberList); + var members = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members; var filter = gangMemberFilter.value.toString(); for (var i = 0; i < members.length; ++i) { if (members[i].name.indexOf(filter) > -1 || members[i].task.name.indexOf(filter) > -1) { @@ -37522,7 +37532,7 @@ function displayGangMemberList() { } function updateGangContent() { - if (!gangContentCreated || !_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} + if (!gangContentCreated || !_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} if(gangTerritorySubpage.style.display === "block") { //Update territory information @@ -37542,7 +37552,7 @@ function updateGangContent() { displayNumber = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(territory, 2); } - if (gangname == _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName) { + if (gangname == _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName) { gangTerritoryInfoText.innerHTML += ("" + gangname + "
(Power: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(gangTerritoryInfo.power, 6) + "): " + displayNumber + "%

"); } else { @@ -37554,53 +37564,53 @@ function updateGangContent() { } else { //Update information for overall gang if (gangInfo instanceof Element) { - var faction = _Faction_js__WEBPACK_IMPORTED_MODULE_2__["Factions"][_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName]; + var faction = _Faction__WEBPACK_IMPORTED_MODULE_2__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName]; var rep; - if (!(faction instanceof _Faction_js__WEBPACK_IMPORTED_MODULE_2__["Faction"])) { + if (!(faction instanceof _Faction__WEBPACK_IMPORTED_MODULE_2__["Faction"])) { rep = "ERROR"; } else { rep = faction.playerReputation; } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["removeChildrenFromElement"])(gangInfo); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Respect + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["removeChildrenFromElement"])(gangInfo); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Respect display:"inline-block", - innerText:"Respect: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect, 6) + - " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(5*_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respectGainRate, 6) + " / sec)", + innerText:"Respect: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect, 6) + + " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(5*_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respectGainRate, 6) + " / sec)", tooltip:"Represents the amount of respect your gang has from other gangs and criminal " + "organizations. Your respect affects the amount of money " + "your gang members will earn, and also determines how much " + "reputation you are earning with your gang's corresponding Faction." })); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Wanted level + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Wanted level display:"inline-block", - innerText:"Wanted Level: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted, 6) + - " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(5*_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wantedGainRate, 6) + " / sec)", + innerText:"Wanted Level: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted, 6) + + " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(5*_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wantedGainRate, 6) + " / sec)", tooltip:"Represents how much the gang is wanted by law enforcement. The higher " + "your gang's wanted level, the harder it will be for your gang members " + "to make money and earn respect. Note that the minimum wanted level is 1." })); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); - var wantedPenalty = (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect) / (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect + _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted); + var wantedPenalty = (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect) / (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.respect + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.wanted); wantedPenalty = (1 - wantedPenalty) * 100; - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Wanted Level multiplier + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Wanted Level multiplier display:"inline-block", innerText:"Wanted Level Penalty: -" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(wantedPenalty, 2) + "%", tooltip:"Penalty for respect and money gain rates due to Wanted Level" })); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Money gain rate + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Money gain rate display:"inline-block", - innerText:"Money gain rate: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(5*_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.moneyGainRate, 2) + + innerText:"Money gain rate: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(5*_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.moneyGainRate, 2) + " / sec", })); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); //Fix some rounding issues graphically - var territoryMult = AllGangs[_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory * 100; + var territoryMult = AllGangs[_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName].territory * 100; let displayNumber; if (territoryMult <= 0) { displayNumber = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(0, 2); @@ -37609,35 +37619,35 @@ function updateGangContent() { } else { displayNumber = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(territoryMult, 2); } - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Territory multiplier + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Territory multiplier display:"inline-block", innerText:"Territory: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(displayNumber, 3) + "%", tooltip:"The percentage of total territory your Gang controls" })); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Faction reputation + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { //Faction reputation display:"inline-block", innerText:"Faction reputation: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(rep, 3) })); - gangInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); + gangInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("br", {})); } else { console.log("ERROR: gang-info DOM element DNE"); } //Toggle the 'Recruit member button' if valid - var numMembers = _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; + var numMembers = _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; var repCost = 0; if (numMembers > 0) { - var repCost = Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangRecruitCostMultiplier, numMembers); + var repCost = Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].GangRecruitCostMultiplier, numMembers); } - var faction = _Faction_js__WEBPACK_IMPORTED_MODULE_2__["Factions"][_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName]; + var faction = _Faction__WEBPACK_IMPORTED_MODULE_2__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.facName]; if (faction == null) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Could not find your gang's faction. This is probably a bug please report to dev"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Could not find your gang's faction. This is probably a bug please report to dev"); return; } var btn = gangRecruitMemberButton; - if (numMembers >= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaximumGangMembers) { + if (numMembers >= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].MaximumGangMembers) { btn.className = "a-link-button-inactive"; gangRecruitRequirementText.style.display = "block"; gangRecruitRequirementText.innerHTML = @@ -37653,18 +37663,18 @@ function updateGangContent() { } //Update information for each gang member - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { - updateGangMemberDisplayElement(_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i]); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members.length; ++i) { + updateGangMemberDisplayElement(_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.members[i]); } } } //Takes in a GangMember object function createGangMemberDisplayElement(memberObj) { - if (!gangContentCreated || !_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} + if (!gangContentCreated || !_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} var name = memberObj.name; - var accordion = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createAccordionElement"])({ + var accordion = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createAccordionElement"])({ id:name + "gang-member", hdrText:name, }); @@ -37674,11 +37684,11 @@ function createGangMemberDisplayElement(memberObj) { //Gang member content divided into 3 panels: //Stats Panel - var statsDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var statsDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { id: name + "gang-member-stats", class: "gang-member-info-div", width:"30%", display:"inline" }); - var statsP = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { + var statsP = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", { id:name + "gang-member-stats-text", display:"inline" }); @@ -37686,17 +37696,17 @@ function createGangMemberDisplayElement(memberObj) { //statsDiv.appendChild(upgradeButton); //Panel for Selecting task and show respect/wanted gain - var taskDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var taskDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { id: name + "gang-member-task", class:"gang-member-info-div", width:"30%", display:"inline" }); - var taskSelector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("select", { + var taskSelector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("select", { color:"white", backgroundColor:"black", id:name + "gang-member-task-selector" }); var tasks = null; - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.isHackingGang) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gang.isHackingGang) { tasks = ["---", "Ransomware", "Phishing", "Identity Theft", "DDoS Attacks", "Plant Virus", "Fraud & Counterfeiting","Money Laundering", "Cyberterrorism", "Ethical Hacking", "Train Combat", @@ -37731,17 +37741,17 @@ function createGangMemberDisplayElement(memberObj) { taskSelector.selectedIndex = taskIndex; } - var gainInfo = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id:name + "gang-member-gain-info"}); + var gainInfo = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id:name + "gang-member-gain-info"}); taskDiv.appendChild(taskSelector); taskDiv.appendChild(gainInfo); //Panel for Description of task - var taskDescDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var taskDescDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { id:name + "gang-member-task-desc", class:"gang-member-info-div", width:"30%", display:"inline" }); - var taskDescP = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id: name + "gang-member-task-description", display:"inline"}); + var taskDescP = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("p", {id: name + "gang-member-task-description", display:"inline"}); taskDescDiv.appendChild(taskDescP); statsDiv.style.width = "30%"; @@ -37760,7 +37770,7 @@ function createGangMemberDisplayElement(memberObj) { } function updateGangMemberDisplayElement(memberObj) { - if (!gangContentCreated || !_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} + if (!gangContentCreated || !_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].inGang()) {return;} var name = memberObj.name; //TODO Add upgrade information @@ -37796,7 +37806,7 @@ function setGangMemberTaskDescription(memberObj, taskName) { } function deleteGangDisplayContent() { - if (gangContainer != null) {Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["removeElementById"])(gangContainer.id);} + if (gangContainer != null) {Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["removeElementById"])(gangContainer.id);} gangContentCreated = false; gangContainer = null; @@ -41488,14 +41498,14 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateHacknetNodesContent", function() { return updateHacknetNodesContent; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateHacknetNodesMultiplierButtons", function() { return updateHacknetNodesMultiplierButtons; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateTotalHacknetProduction", function() { return updateTotalHacknetProduction; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial.js */ 24); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./InteractiveTutorial */ 24); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__); @@ -41514,7 +41524,7 @@ __webpack_require__.r(__webpack_exports__); * @param {string} text The inner text that should be set. */ function updateText(elementId, text) { - var el = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getElementById"])(elementId); + var el = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getElementById"])(elementId); if (el.innerText != text) { el.innerText = text; } @@ -41523,7 +41533,7 @@ function updateText(elementId, text) { /* HacknetNode.js */ function hacknetNodesInit() { var performMapping = function(x) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-nodes-" + x.id + "-multiplier") + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-nodes-" + x.id + "-multiplier") .addEventListener("click", function() { hacknetNodePurchaseMultiplier = x.multiplier; updateHacknetNodesMultiplierButtons(); @@ -41562,16 +41572,16 @@ function HacknetNode(name) { HacknetNode.prototype.updateMoneyGainRate = function() { //How much extra $/s is gained per level - var gainPerLevel = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMoneyGainPerLevel; + var gainPerLevel = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMoneyGainPerLevel; this.moneyGainRatePerSecond = (this.level * gainPerLevel) * Math.pow(1.035, this.ram-1) * ((this.cores + 5) / 6) * - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_money_mult * - _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].HacknetNodeMoney; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_money_mult * + _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].HacknetNodeMoney; if (isNaN(this.moneyGainRatePerSecond)) { this.moneyGainRatePerSecond = 0; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_5__["dialogBoxCreate"])("Error in calculating Hacknet Node production. Please report to game developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_5__["dialogBoxCreate"])("Error in calculating Hacknet Node production. Please report to game developer"); } updateTotalHacknetProduction(); @@ -41583,7 +41593,7 @@ HacknetNode.prototype.calculateLevelUpgradeCost = function(levels=1) { return 0; } - var mult = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeUpgradeLevelMult; + var mult = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeUpgradeLevelMult; var totalMultiplier = 0; //Summed var currLevel = this.level; for (var i = 0; i < levels; ++i) { @@ -41591,7 +41601,7 @@ HacknetNode.prototype.calculateLevelUpgradeCost = function(levels=1) { ++currLevel; } - return _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostForHacknetNode / 2 * totalMultiplier * _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_level_cost_mult; + return _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostForHacknetNode / 2 * totalMultiplier * _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_level_cost_mult; } //Wrapper function for Netscript @@ -41606,16 +41616,16 @@ HacknetNode.prototype.purchaseLevelUpgrade = function(levels=1) { return false; } - if (this.level + levels > _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel) { - var diff = Math.max(0, _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - this.level); + if (this.level + levels > _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel) { + var diff = Math.max(0, _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - this.level); return this.purchaseLevelUpgrade(diff); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); this.level += levels; this.updateMoneyGainRate(); return true; @@ -41633,9 +41643,9 @@ HacknetNode.prototype.calculateRamUpgradeCost = function() { //Calculate cost //Base cost of RAM is 50k per 1GB, increased by some multiplier for each time RAM is upgraded - var baseCost = this.ram * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostFor1GBOfRamHacknetNode; - var mult = Math.pow(_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeUpgradeRamMult, numUpgrades); - return baseCost * mult * _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_ram_cost_mult; + var baseCost = this.ram * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostFor1GBOfRamHacknetNode; + var mult = Math.pow(_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeUpgradeRamMult, numUpgrades); + return baseCost * mult * _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_ram_cost_mult; } //Wrapper function for Netscript @@ -41649,15 +41659,15 @@ HacknetNode.prototype.purchaseRamUpgrade = function() { return false; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { return false; } - if (this.ram >= _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxRam) { + if (this.ram >= _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxRam) { return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); this.ram *= 2; //Ram is always doubled this.updateMoneyGainRate(); return true; @@ -41671,9 +41681,9 @@ HacknetNode.prototype.upgradeRam = function() { } HacknetNode.prototype.calculateCoreUpgradeCost = function() { - var coreBaseCost = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostForHacknetNodeCore; - var mult = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeUpgradeCoreMult; - return coreBaseCost * Math.pow(mult, this.cores - 1) * _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_core_cost_mult; + var coreBaseCost = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostForHacknetNodeCore; + var mult = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeUpgradeCoreMult; + return coreBaseCost * Math.pow(mult, this.cores - 1) * _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_core_cost_mult; } //Wrapper function for Netscript @@ -41689,15 +41699,15 @@ HacknetNode.prototype.purchaseCoreUpgrade = function() { return false; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { return false; } - if (this.cores >= _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxCores) { + if (this.cores >= _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxCores) { return false; } - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); ++this.cores; this.updateMoneyGainRate(); return true; @@ -41710,14 +41720,14 @@ HacknetNode.prototype.upgradeCore = function() { /* Saving and loading HackNets */ HacknetNode.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_7__["Generic_toJSON"])("HacknetNode", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_7__["Generic_toJSON"])("HacknetNode", this); } HacknetNode.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_7__["Generic_fromJSON"])(HacknetNode, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_7__["Generic_fromJSON"])(HacknetNode, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_7__["Reviver"].constructors.HacknetNode = HacknetNode; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_7__["Reviver"].constructors.HacknetNode = HacknetNode; var HacknetNodeWrapper = function(hacknetNodeObj) { var _node = hacknetNodeObj; @@ -41752,9 +41762,9 @@ var HacknetNodeWrapper = function(hacknetNodeObj) { function purchaseHacknet() { /* INTERACTIVE TUTORIAL */ - if (_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["iTutorialIsRunning"]) { - if (_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["currITutorialStep"] == _InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["iTutorialSteps"].HacknetNodesIntroduction) { - Object(_InteractiveTutorial_js__WEBPACK_IMPORTED_MODULE_3__["iTutorialNextStep"])(); + if (_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["iTutorialIsRunning"]) { + if (_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["currITutorialStep"] == _InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["iTutorialSteps"].HacknetNodesIntroduction) { + Object(_InteractiveTutorial__WEBPACK_IMPORTED_MODULE_3__["iTutorialNextStep"])(); } else { return; } @@ -41767,21 +41777,21 @@ function purchaseHacknet() { throw new Error("Cost is NaN"); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { //dialogBoxCreate("You cannot afford to purchase a Hacknet Node!"); return false; } //Auto generate a name for the node for now...TODO - var numOwned = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; + var numOwned = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; var name = "hacknet-node-" + numOwned; var node = new HacknetNode(name); node.updateMoneyGainRate(); - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.push(node); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.push(node); - if (_engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].Page.HacknetNodes) { + if (_engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].Page.HacknetNodes) { displayHacknetNodesContent(); } createPlayerHacknetNodeWrappers(); @@ -41792,17 +41802,17 @@ function purchaseHacknet() { //Calculates the total production from all HacknetNodes function updateTotalHacknetProduction() { var total = 0; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { - total += _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].moneyGainRatePerSecond; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { + total += _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].moneyGainRatePerSecond; } - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].totalHacknetNodeProduction = total; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].totalHacknetNodeProduction = total; } function getCostOfNextHacknetNode() { //Cost increases exponentially based on how many you own - var numOwned = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; - var mult = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodePurchaseNextMult; - return _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostForHacknetNode * Math.pow(mult, numOwned) * _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_purchase_cost_mult; + var numOwned = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; + var mult = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodePurchaseNextMult; + return _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].BaseCostForHacknetNode * Math.pow(mult, numOwned) * _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknet_node_purchase_cost_mult; } var hacknetNodePurchaseMultiplier = 1; @@ -41815,7 +41825,7 @@ function updateHacknetNodesMultiplierButtons() { mult5x.setAttribute("class", "a-link-button"); mult10x.setAttribute("class", "a-link-button"); multMax.setAttribute("class", "a-link-button"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length == 0) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length == 0) { mult1x.setAttribute("class", "a-link-button-inactive"); mult5x.setAttribute("class", "a-link-button-inactive"); mult10x.setAttribute("class", "a-link-button-inactive"); @@ -41834,26 +41844,26 @@ function updateHacknetNodesMultiplierButtons() { //Calculate the maximum number of times the Player can afford to upgrade //a Hacknet Node's level" function getMaxNumberLevelUpgrades(nodeObj) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(nodeObj.calculateLevelUpgradeCost(1))) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(nodeObj.calculateLevelUpgradeCost(1))) { return 0; } var min = 1; - var max = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - 1; - var levelsToMax = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - nodeObj.level; - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.gt(nodeObj.calculateLevelUpgradeCost(levelsToMax))) { + var max = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - 1; + var levelsToMax = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - nodeObj.level; + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.gt(nodeObj.calculateLevelUpgradeCost(levelsToMax))) { return levelsToMax; } while (min <= max) { var curr = (min + max) / 2 | 0; - if (curr != _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel && - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.gt(nodeObj.calculateLevelUpgradeCost(curr)) && - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(nodeObj.calculateLevelUpgradeCost(curr + 1))) { + if (curr != _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel && + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.gt(nodeObj.calculateLevelUpgradeCost(curr)) && + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(nodeObj.calculateLevelUpgradeCost(curr + 1))) { return Math.min(levelsToMax, curr); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(nodeObj.calculateLevelUpgradeCost(curr))) { + } else if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(nodeObj.calculateLevelUpgradeCost(curr))) { max = curr - 1; - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.gt(nodeObj.calculateLevelUpgradeCost(curr))) { + } else if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.gt(nodeObj.calculateLevelUpgradeCost(curr))) { min = curr + 1; } else { return Math.min(levelsToMax, curr); @@ -41864,7 +41874,7 @@ function getMaxNumberLevelUpgrades(nodeObj) { //Creates Hacknet Node DOM elements when the page is opened function displayHacknetNodesContent() { //Update Hacknet Nodes button - var newPurchaseButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["clearEventListeners"])("hacknet-nodes-purchase-button"); + var newPurchaseButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["clearEventListeners"])("hacknet-nodes-purchase-button"); newPurchaseButton.addEventListener("click", function() { purchaseHacknet(); @@ -41881,8 +41891,8 @@ function displayHacknetNodesContent() { } //Then re-create them - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { - createHacknetNodeDomElement(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { + createHacknetNodeDomElement(_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); } updateHacknetNodesContent(); @@ -41892,24 +41902,24 @@ function displayHacknetNodesContent() { function updateHacknetNodesContent() { //Set purchase button to inactive if not enough money, and update its price display var cost = getCostOfNextHacknetNode(); - var purchaseButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-nodes-purchase-button"); + var purchaseButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-nodes-purchase-button"); var formattedCost = Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(cost, 2); updateText("hacknet-nodes-purchase-button", "Purchase Hacknet Node - $" + formattedCost); - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(cost)) { purchaseButton.setAttribute("class", "a-link-button-inactive"); } else { purchaseButton.setAttribute("class", "a-link-button"); } //Update player's money - updateText("hacknet-nodes-player-money", "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.toNumber(), 2)); - updateText("hacknet-nodes-total-production", "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].totalHacknetNodeProduction, 2) + " / second"); + updateText("hacknet-nodes-player-money", "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.toNumber(), 2)); + updateText("hacknet-nodes-total-production", "$" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].totalHacknetNodeProduction, 2) + " / second"); //Update information in each owned hacknet node - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { - updateHacknetNodeDomElement(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { + updateHacknetNodeDomElement(_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); } } @@ -41917,21 +41927,21 @@ function updateHacknetNodesContent() { function createHacknetNodeDomElement(nodeObj) { var nodeName = nodeObj.name; - var nodeLevelContainer = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var nodeLevelContainer = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { class: "hacknet-node-level-container row", innerHTML: "

Level:

" }); - var nodeRamContainer = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var nodeRamContainer = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { class: "hacknet-node-ram-container row", innerHTML: "

RAM:

" }); - var nodeCoresContainer = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var nodeCoresContainer = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { class: "hacknet-node-cores-container row", innerHTML: "

Cores:

" }) - var containingDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { + var containingDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("div", { class: "hacknet-node-container", innerHTML: "
" + "

Node name:

" + @@ -41947,13 +41957,13 @@ function createHacknetNodeDomElement(nodeObj) { containingDiv.appendChild(nodeRamContainer); containingDiv.appendChild(nodeCoresContainer); - var listItem = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", { + var listItem = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("li", { class: "hacknet-node" }); listItem.appendChild(containingDiv); //Upgrade buttons - nodeLevelContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + nodeLevelContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { id: "hacknet-node-upgrade-level-" + nodeName, class: "a-link-button-inactive", clickListener: function() { @@ -41967,7 +41977,7 @@ function createHacknetNodeDomElement(nodeObj) { } })); - nodeRamContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + nodeRamContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { id: "hacknet-node-upgrade-ram-" + nodeName, class: "a-link-button-inactive", clickListener: function() { @@ -41977,7 +41987,7 @@ function createHacknetNodeDomElement(nodeObj) { } })); - nodeCoresContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { + nodeCoresContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["createElement"])("a", { id: "hacknet-node-upgrade-core-" + nodeName, class: "a-link-button-inactive", clickListener: function() { @@ -42005,9 +42015,9 @@ function updateHacknetNodeDomElement(nodeObj) { updateText("hacknet-node-cores-" + nodeName, nodeObj.cores); //Upgrade level - var upgradeLevelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-node-upgrade-level-" + nodeName); + var upgradeLevelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-node-upgrade-level-" + nodeName); - if (nodeObj.level >= _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel) { + if (nodeObj.level >= _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel) { updateText("hacknet-node-upgrade-level-" + nodeName, "MAX LEVEL"); upgradeLevelButton.setAttribute("class", "a-link-button-inactive"); } else { @@ -42016,13 +42026,13 @@ function updateHacknetNodeDomElement(nodeObj) { //Max multiplier = getMaxNumberLevelUpgrades(nodeObj); } else { - var levelsToMax = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - nodeObj.level; + var levelsToMax = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxLevel - nodeObj.level; multiplier = Math.min(levelsToMax, hacknetNodePurchaseMultiplier); } var upgradeLevelCost = nodeObj.calculateLevelUpgradeCost(multiplier); updateText("hacknet-node-upgrade-level-" + nodeName, "Upgrade x" + multiplier + " - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(upgradeLevelCost, 2)) - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(upgradeLevelCost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(upgradeLevelCost)) { upgradeLevelButton.setAttribute("class", "a-link-button-inactive"); } else { upgradeLevelButton.setAttribute("class", "a-link-button"); @@ -42030,15 +42040,15 @@ function updateHacknetNodeDomElement(nodeObj) { } //Upgrade RAM - var upgradeRamButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-node-upgrade-ram-" + nodeName); + var upgradeRamButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-node-upgrade-ram-" + nodeName); - if (nodeObj.ram >= _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxRam) { + if (nodeObj.ram >= _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxRam) { updateText("hacknet-node-upgrade-ram-" + nodeName, "MAX RAM"); upgradeRamButton.setAttribute("class", "a-link-button-inactive"); } else { var upgradeRamCost = nodeObj.calculateRamUpgradeCost(); updateText("hacknet-node-upgrade-ram-" + nodeName, "Upgrade - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(upgradeRamCost, 2)); - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(upgradeRamCost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(upgradeRamCost)) { upgradeRamButton.setAttribute("class", "a-link-button-inactive"); } else { upgradeRamButton.setAttribute("class", "a-link-button"); @@ -42046,15 +42056,15 @@ function updateHacknetNodeDomElement(nodeObj) { } //Upgrade Cores - var upgradeCoreButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-node-upgrade-core-" + nodeName); + var upgradeCoreButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_6__["getElementById"])("hacknet-node-upgrade-core-" + nodeName); - if (nodeObj.cores >= _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxCores) { + if (nodeObj.cores >= _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].HacknetNodeMaxCores) { updateText("hacknet-node-upgrade-core-" + nodeName, "MAX CORES"); upgradeCoreButton.setAttribute("class", "a-link-button-inactive"); } else { var upgradeCoreCost = nodeObj.calculateCoreUpgradeCost(); updateText("hacknet-node-upgrade-core-" + nodeName, "Upgrade - $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(upgradeCoreCost, 2)); - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(upgradeCoreCost)) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].money.lt(upgradeCoreCost)) { upgradeCoreButton.setAttribute("class", "a-link-button-inactive"); } else { upgradeCoreButton.setAttribute("class", "a-link-button"); @@ -42063,43 +42073,43 @@ function updateHacknetNodeDomElement(nodeObj) { } function createPlayerHacknetNodeWrappers() { - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers.length = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i] = new HacknetNodeWrapper(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers.length = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i] = new HacknetNodeWrapper(_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); } } function updatePlayerHacknetNodeWrappers() { - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers.length !== _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers.length !== _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length) { return createPlayerHacknetNodeWrappers(); } - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers.length; ++i) { - if (!(_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i] instanceof HacknetNodeWrapper)) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers.length; ++i) { + if (!(_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i] instanceof HacknetNodeWrapper)) { return createPlayerHacknetNodeWrappers(); } - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].level = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].level; - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].ram = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].ram; - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].cores = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].cores; - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].totalMoneyGenerated = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].totalMoneyGenerated; - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].onlineTimeSeconds = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].onlineTimeSeconds; - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].moneyGainRatePerSecond = _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].moneyGainRatePerSecond; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].level = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].level; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].ram = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].ram; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].cores = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].cores; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].totalMoneyGenerated = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].totalMoneyGenerated; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].onlineTimeSeconds = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].onlineTimeSeconds; + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodeWrappers[i].moneyGainRatePerSecond = _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].moneyGainRatePerSecond; } } function processAllHacknetNodeEarnings(numCycles) { var total = 0; updatePlayerHacknetNodeWrappers(); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { - total += processSingleHacknetNodeEarnings(numCycles, _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { + total += processSingleHacknetNodeEarnings(numCycles, _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]); } return total; } function processSingleHacknetNodeEarnings(numCycles, nodeObj) { - var cyclesPerSecond = 1000 / _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"]._idleSpeed; + var cyclesPerSecond = 1000 / _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"]._idleSpeed; var earningPerCycle = nodeObj.moneyGainRatePerSecond / cyclesPerSecond; if (isNaN(earningPerCycle)) { console.error("Hacknet Node '" + nodeObj.name + "' Calculated earnings is NaN"); @@ -42108,15 +42118,15 @@ function processSingleHacknetNodeEarnings(numCycles, nodeObj) { var totalEarnings = numCycles * earningPerCycle; nodeObj.totalMoneyGenerated += totalEarnings; - nodeObj.onlineTimeSeconds += (numCycles * (_engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"]._idleSpeed / 1000)); - _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].gainMoney(totalEarnings); + nodeObj.onlineTimeSeconds += (numCycles * (_engine__WEBPACK_IMPORTED_MODULE_2__["Engine"]._idleSpeed / 1000)); + _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].gainMoney(totalEarnings); return totalEarnings; } function getHacknetNode(name) { - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].name == name) { - return _Player_js__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]; + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i].name == name) { + return _Player__WEBPACK_IMPORTED_MODULE_4__["Player"].hacknetNodes[i]; } } @@ -42137,15 +42147,15 @@ function getHacknetNode(name) { __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "redPillFlag", function() { return redPillFlag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hackWorldDaemon", function() { return hackWorldDaemon; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Prestige_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Prestige.js */ 56); -/* harmony import */ var _SourceFile_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SourceFile.js */ 40); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Terminal.js */ 22); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Prestige__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Prestige */ 56); +/* harmony import */ var _SourceFile__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SourceFile */ 40); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Terminal */ 22); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -42200,7 +42210,7 @@ function writeRedPillLetter(pElem, line, i=0) { let redPillFlag = false; function hackWorldDaemon(currentNodeNumber, flume=false) { redPillFlag = true; - _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadRedPillContent(); + _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadRedPillContent(); return writeRedPillLine("[ERROR] SEMPOOL INVALID").then(function() { return writeRedPillLine("[ERROR] Segmentation Fault"); }).then(function() { @@ -42240,7 +42250,7 @@ function hackWorldDaemon(currentNodeNumber, flume=false) { //This needs to be removed function giveSourceFile(bitNodeNumber) { var sourceFileKey = "SourceFile"+ bitNodeNumber.toString(); - var sourceFile = _SourceFile_js__WEBPACK_IMPORTED_MODULE_4__["SourceFiles"][sourceFileKey]; + var sourceFile = _SourceFile__WEBPACK_IMPORTED_MODULE_4__["SourceFiles"][sourceFileKey]; if (sourceFile == null) { console.log("ERROR: could not find source file for Bit node: " + bitNodeNumber); return; @@ -42249,30 +42259,30 @@ function giveSourceFile(bitNodeNumber) { //Check if player already has this source file var alreadyOwned = false; var ownedSourceFile = null; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles[i].n === bitNodeNumber) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles[i].n === bitNodeNumber) { alreadyOwned = true; - ownedSourceFile = _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles[i]; + ownedSourceFile = _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles[i]; break; } } if (alreadyOwned && ownedSourceFile) { if (ownedSourceFile.lvl >= 3 && ownedSourceFile.n !== 12) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("The Source-File for the BitNode you just destroyed, " + sourceFile.name + ", " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("The Source-File for the BitNode you just destroyed, " + sourceFile.name + ", " + "is already at max level!"); } else { ++ownedSourceFile.lvl; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])(sourceFile.name + " was upgraded to level " + ownedSourceFile.lvl + " for " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])(sourceFile.name + " was upgraded to level " + ownedSourceFile.lvl + " for " + "destroying its corresponding BitNode!"); } } else { - var playerSrcFile = new _SourceFile_js__WEBPACK_IMPORTED_MODULE_4__["PlayerOwnedSourceFile"](bitNodeNumber, 1); - _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles.push(playerSrcFile); + var playerSrcFile = new _SourceFile__WEBPACK_IMPORTED_MODULE_4__["PlayerOwnedSourceFile"](bitNodeNumber, 1); + _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].sourceFiles.push(playerSrcFile); if (bitNodeNumber === 5) { //Artificial Intelligence - _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence = 1; + _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].intelligence = 1; } - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You received a Source-File for destroying a Bit Node!

" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("You received a Source-File for destroying a Bit Node!

" + sourceFile.name + "

" + sourceFile.info); } } @@ -42280,7 +42290,7 @@ function giveSourceFile(bitNodeNumber) { function loadBitVerse(destroyedBitNodeNum, flume=false) { //Clear the screen var container = document.getElementById("red-pill-container"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(container); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(container); //Create the Bit Verse var bitVerseImage = document.createElement("pre"); @@ -42351,23 +42361,23 @@ function loadBitVerse(destroyedBitNodeNum, flume=false) { for (var i = 1; i <= 12; ++i) { (function(i) { var elemId = "bitnode-" + i.toString(); - var elem = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])(elemId); + var elem = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["clearEventListeners"])(elemId); if (elem == null) {return;} if (i === 1 || i === 2 || i === 3 || i === 4 || i === 5 || i === 6 || i === 7 || i === 8 || i === 11 || i === 12) { elem.addEventListener("click", function() { var bitNodeKey = "BitNode" + i; - var bitNode = _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodes"][bitNodeKey]; + var bitNode = _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodes"][bitNodeKey]; if (bitNode == null) { console.log("ERROR: Could not find BitNode object for number: " + i); return; } - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxCreate"])("BitNode-" + i + ": " + bitNode.name + "

" + bitNode.info); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxCreate"])("BitNode-" + i + ": " + bitNode.name + "

" + bitNode.info); createBitNodeYesNoEventListeners(i, destroyedBitNodeNum, flume); }); } else { elem.addEventListener("click", function() { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Not yet implemented! Coming soon!") + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_6__["dialogBoxCreate"])("Not yet implemented! Coming soon!") }); } }(i)); //Immediate invocation closure @@ -42425,7 +42435,7 @@ function loadBitVerse(destroyedBitNodeNum, flume=false) { //Returns string with DOM element for Bit Node function createBitNode(n) { var bitNodeStr = "BitNode" + n.toString(); - var bitNode = _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodes"][bitNodeStr]; + var bitNode = _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodes"][bitNodeStr]; if (bitNode == null) {return "O";} return "O" + "" + @@ -42435,7 +42445,7 @@ function createBitNode(n) { } function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=false) { - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxGetYesButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxGetYesButton"])(); yesBtn.innerHTML = "Enter BitNode-" + newBitNode; yesBtn.addEventListener("click", function() { if (!flume) { @@ -42443,15 +42453,15 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa } else { //If player used flume, subtract 5 int exp. The prestigeSourceFile() //function below grants 5 int exp, so this allows sets net gain to 0 - _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].gainIntelligenceExp(-5); + _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].gainIntelligenceExp(-5); } redPillFlag = false; var container = document.getElementById("red-pill-container"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(container); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_7__["removeChildrenFromElement"])(container); //Set new Bit Node - _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].bitNodeN = newBitNode; - console.log("Entering Bit Node " + _Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].bitNodeN); + _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].bitNodeN = newBitNode; + console.log("Entering Bit Node " + _Player__WEBPACK_IMPORTED_MODULE_2__["Player"].bitNodeN); //Reenable terminal $("#hack-progress-bar").attr('id', "old-hack-progress-bar"); @@ -42459,15 +42469,15 @@ function createBitNodeYesNoEventListeners(newBitNode, destroyedBitNode, flume=fa document.getElementById("terminal-input-td").innerHTML = '$ '; $('input[class=terminal-input]').prop('disabled', false); - _Terminal_js__WEBPACK_IMPORTED_MODULE_5__["Terminal"].hackFlag = false; + _Terminal__WEBPACK_IMPORTED_MODULE_5__["Terminal"].hackFlag = false; - Object(_Prestige_js__WEBPACK_IMPORTED_MODULE_3__["prestigeSourceFile"])(); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxClose"])(); + Object(_Prestige__WEBPACK_IMPORTED_MODULE_3__["prestigeSourceFile"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxClose"])(); }); - var noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxGetNoButton"])(); + var noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxGetNoButton"])(); noBtn.innerHTML = "Back"; noBtn.addEventListener("click", function() { - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxClose"])(); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_8__["yesNoBoxClose"])(); }); } @@ -53136,8 +53146,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlayerOwnedSourceFile", function() { return PlayerOwnedSourceFile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "applySourceFile", function() { return applySourceFile; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initSourceFiles", function() { return initSourceFiles; }); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode.js */ 14); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BitNode */ 14); @@ -53145,7 +53155,7 @@ __webpack_require__.r(__webpack_exports__); //Each SourceFile corresponds to a BitNode with the same number function SourceFile(number, info="") { var bitnodeKey = "BitNode" + number; - var bitnode = _BitNode_js__WEBPACK_IMPORTED_MODULE_1__["BitNodes"][bitnodeKey]; + var bitnode = _BitNode__WEBPACK_IMPORTED_MODULE_1__["BitNodes"][bitnodeKey]; if (bitnode == null) { throw new Error("Invalid Bit Node for this Source File"); } @@ -53183,9 +53193,9 @@ function initSourceFiles() { "know when you gain experience and how much). Higher Intelligence levels will boost your production " + "for many actions in the game. In addition, this Source-File will unlock the getBitNodeMultipliers() " + "Netscript function, and will raise all of your hacking-related multipliers by:

" + - "Level 1: 4%
" + - "Level 2: 6%
" + - "Level 3: 7%"); + "Level 1: 8%
" + + "Level 2: 12%
" + + "Level 3: 14%"); SourceFiles["SourceFile6"] = new SourceFile(6, "This Source-File allows you to access the NSA's Bladeburner Division in other " + "BitNodes. In addition, this Source-File will raise the experience gain rate of all your combat stats by:

" + "Level 1: 8%
" + @@ -53201,7 +53211,7 @@ function initSourceFiles() { "Level 2: Ability to short stocks in other BitNodes
" + "Level 3: Ability to use limit/stop orders in other BitNodes

" + "This Source-File also increases your hacking growth multipliers by: " + - "
Level 1: 8%
Level 2: 12%
Level 3: 14%"); + "
Level 1: 12%
Level 2: 18%
Level 3: 21%"); SourceFiles["SourceFile9"] = new SourceFile(9); SourceFiles["SourceFile10"] = new SourceFile(10); SourceFiles["SourceFile11"] = new SourceFile(11, "This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate " + @@ -53210,7 +53220,8 @@ function initSourceFiles() { "Level 1: 24%
" + "Level 2: 36%
" + "Level 3: 42%
"); - SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File increases all your multipliers by 1% per level"); + SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File increases all your multipliers by 1% per level. This effect is additive with itself, " + + "NOT multiplicative. In other words, level N of this Source-File will increase all of your multipliers by N%"); } function PlayerOwnedSourceFile(number, level) { @@ -53235,32 +53246,32 @@ function applySourceFile(srcFile) { } var incMult = 1 + (mult / 100); var decMult = 1 - (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_chance_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_speed_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_money_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].company_rep_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].faction_rep_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_money_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_success_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_money_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_purchase_cost_mult *= decMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_ram_cost_mult *= decMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_core_cost_mult *= decMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_level_cost_mult *= decMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_chance_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_speed_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].company_rep_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].faction_rep_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_success_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_purchase_cost_mult *= decMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_ram_cost_mult *= decMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_core_cost_mult *= decMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_level_cost_mult *= decMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= incMult; break; case 2: //Rise of the Underworld var mult = 0; @@ -53268,9 +53279,9 @@ function applySourceFile(srcFile) { mult += (20 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_money_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_success_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_success_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= incMult; break; case 3: //Corporatocracy var mult = 0; @@ -53278,8 +53289,8 @@ function applySourceFile(srcFile) { mult += (8 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= incMult; break; case 4: //The Singularity //No effects, just gives access to Singularity functions @@ -53287,15 +53298,15 @@ function applySourceFile(srcFile) { case 5: //Artificial Intelligence var mult = 0; for (var i = 0; i < srcFile.lvl; ++i) { - mult += (4 / (Math.pow(2, i))); + mult += (8 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_chance_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_speed_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_money_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_chance_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_speed_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_exp_mult *= incMult; break; case 6: //Bladeburner var mult = 0; @@ -53303,10 +53314,10 @@ function applySourceFile(srcFile) { mult += (8 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_exp_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_exp_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_exp_mult *= incMult; break; case 7: //Bladeburner 2079 var mult = 0; @@ -53314,18 +53325,18 @@ function applySourceFile(srcFile) { mult += (8 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_max_stamina_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_stamina_gain_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_analysis_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_success_chance_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_max_stamina_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_stamina_gain_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_analysis_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].bladeburner_success_chance_mult *= incMult; break; case 8: //Ghost of Wall Street var mult = 0; for (var i = 0; i < srcFile.lvl; ++i) { - mult += (8 / (Math.pow(2, i))); + mult += (12 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= incMult; break; case 11: //The Big Crash var mult = 0; @@ -53333,45 +53344,45 @@ function applySourceFile(srcFile) { mult += (24 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= incMult; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].company_rep_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= incMult; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].company_rep_mult *= incMult; break; case 12: //The testing ground - const inc = Math.pow(1.01, srcFile.lvl); - const dec = Math.pow(0.99, srcFile.lvl); + const inc = 1 + (srcFile.level/100); + const dec = 1 - (srcFile.level/100); - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_chance_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_speed_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_money_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_chance_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_speed_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_money_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_grow_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_exp_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_exp_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_exp_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_exp_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_exp_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_exp_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacking_exp_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].strength_exp_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].defense_exp_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].dexterity_exp_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].agility_exp_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].charisma_exp_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].company_rep_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].faction_rep_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].company_rep_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].faction_rep_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_money_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_success_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_money_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].crime_success_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_money_mult *= inc; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_purchase_cost_mult *= dec; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_ram_cost_mult *= dec; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_core_cost_mult *= dec; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_level_cost_mult *= dec; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_money_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_purchase_cost_mult *= dec; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_ram_cost_mult *= dec; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_core_cost_mult *= dec; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].hacknet_node_level_cost_mult *= dec; - _Player_js__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= inc; + _Player__WEBPACK_IMPORTED_MODULE_0__["Player"].work_money_mult *= inc; default: console.log("ERROR: Invalid source file number: " + srcFile.n); break; @@ -53395,13 +53406,13 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "addActiveScriptsItem", function() { return addActiveScriptsItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteActiveScriptsItem", function() { return deleteActiveScriptsItem; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateActiveScriptsItems", function() { return updateActiveScriptsItems; }); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_LogBox_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/LogBox.js */ 49); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_LogBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/LogBox */ 49); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); @@ -53434,7 +53445,7 @@ function createActiveScriptsServerPanel(server) { var activeScriptsList = document.getElementById("active-scripts-list"); - let res = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createAccordionElement"])({hdrText:hostname}); + let res = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createAccordionElement"])({hdrText:hostname}); let li = res[0]; var hdr = res[1]; let panel = res[2]; @@ -53444,7 +53455,7 @@ function createActiveScriptsServerPanel(server) { return; } - var panelScriptList = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createElement"])("ul"); + var panelScriptList = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createElement"])("ul"); panel.appendChild(panelScriptList); activeScriptsList.appendChild(li); @@ -53475,13 +53486,13 @@ function deleteActiveScriptsServerPanel(server) { return; } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["removeElement"])(ActiveScriptsUI[hostname].panel); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["removeElement"])(ActiveScriptsUI[hostname].header); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["removeElement"])(ActiveScriptsUI[hostname].panel); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["removeElement"])(ActiveScriptsUI[hostname].header); delete ActiveScriptsUI[hostname]; } function addActiveScriptsItem(workerscript) { - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); if (server == null) { console.log("ERROR: Invalid server IP for workerscript in addActiveScriptsItem()"); return; @@ -53500,7 +53511,7 @@ function addActiveScriptsItem(workerscript) { } var itemName = itemNameArray.join("-"); - let res = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createAccordionElement"])({hdrText:workerscript.name}); + let res = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createAccordionElement"])({hdrText:workerscript.name}); let li = res[0]; let hdr = res[1]; let panel = res[2]; @@ -53512,27 +53523,27 @@ function addActiveScriptsItem(workerscript) { //Handle the constant elements on the panel that don't change after creation //Threads, args, kill/log button - panel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", { + panel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", { innerHTML: "Threads: " + workerscript.scriptRef.threads + "
" + - "Args: " + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["printArray"])(workerscript.args) + "Args: " + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["printArray"])(workerscript.args) })); - var panelText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", { + var panelText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", { innerText:"Loading...", fontSize:"14px", }); panel.appendChild(panelText); - panel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createElement"])("br")); - panel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createElement"])("span", { + panel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createElement"])("br")); + panel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createElement"])("span", { innerText:"Log", class:"active-scripts-button", margin:"4px", padding:"4px", clickListener:()=>{ - Object(_utils_LogBox_js__WEBPACK_IMPORTED_MODULE_6__["logBoxCreate"])(workerscript.scriptRef); + Object(_utils_LogBox__WEBPACK_IMPORTED_MODULE_6__["logBoxCreate"])(workerscript.scriptRef); return false; } })); - panel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["createElement"])("span", { + panel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["createElement"])("span", { innerText:"Kill Script", class:"active-scripts-button", margin:"4px", padding:"4px", clickListener:()=>{ - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_1__["killWorkerScript"])(workerscript.scriptRef, workerscript.scriptRef.scriptRef.server); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Killing script, may take a few minutes to complete..."); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_1__["killWorkerScript"])(workerscript.scriptRef, workerscript.scriptRef.scriptRef.server); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Killing script, may take a few minutes to complete..."); return false; } })); @@ -53547,7 +53558,7 @@ function addActiveScriptsItem(workerscript) { function deleteActiveScriptsItem(workerscript) { ActiveScriptsTasks.push(function(workerscript) { - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); if (server == null) { throw new Error("ERROR: Invalid server IP for workerscript. This most likely occurred because " + "you tried to delete a large number of scripts and also deleted servers at the " + @@ -53572,7 +53583,7 @@ function deleteActiveScriptsItem(workerscript) { console.log(workerscript); return; } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["removeElement"])(li); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["removeElement"])(li); delete ActiveScriptsUI[hostname].scripts[itemName]; delete ActiveScriptsUI[hostname].scriptHdrs[itemName]; delete ActiveScriptsUI[hostname].scriptStats[itemName]; @@ -53592,31 +53603,31 @@ function updateActiveScriptsItems(maxTasks=100) { try { task(); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["exceptionAlert"])(e); console.log(task); } } - if (_engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].currentPage !== _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].Page.ActiveScripts) {return;} + if (_engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].currentPage !== _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].Page.ActiveScripts) {return;} var total = 0; - for (var i = 0; i < _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_1__["workerScripts"].length; ++i) { + for (var i = 0; i < _NetscriptWorker__WEBPACK_IMPORTED_MODULE_1__["workerScripts"].length; ++i) { try { - total += updateActiveScriptsItemContent(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_1__["workerScripts"][i]); + total += updateActiveScriptsItemContent(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_1__["workerScripts"][i]); } catch(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["exceptionAlert"])(e); } } document.getElementById("active-scripts-total-prod").innerHTML = "Total online production of Active Scripts: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default()(total).format('$0.000a') + " / sec
" + "Total online production since last Aug installation: " + - numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default()(_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].scriptProdSinceLastAug).format('$0.000a') + " (" + - numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default()(_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].scriptProdSinceLastAug / (_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].playtimeSinceLastAug/1000)).format('$0.000a') + " / sec)"; + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default()(_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].scriptProdSinceLastAug).format('$0.000a') + " (" + + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_7___default()(_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].scriptProdSinceLastAug / (_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].playtimeSinceLastAug/1000)).format('$0.000a') + " / sec)"; return total; } //Updates the content of the given item in the Active Scripts list function updateActiveScriptsItemContent(workerscript) { - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); if (server == null) { console.log("ERROR: Invalid server IP for workerscript."); return; @@ -53642,7 +53653,7 @@ function updateActiveScriptsItemContent(workerscript) { } function updateActiveScriptsText(workerscript, item, itemName) { - var server = Object(_Server_js__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); + var server = Object(_Server__WEBPACK_IMPORTED_MODULE_3__["getServer"])(workerscript.serverIp); if (server == null) { console.log("ERROR: Invalid server IP for workerscript."); return; @@ -53659,7 +53670,7 @@ function updateActiveScriptsText(workerscript, item, itemName) { if (ActiveScriptsUI[hostname].header.classList.contains("active") === false) {return onlineMps;} if (ActiveScriptsUI[hostname].scriptHdrs[itemName].classList.contains("active") === false) {return onlineMps;} - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["removeChildrenFromElement"])(item); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["removeChildrenFromElement"])(item); //Online var onlineTotalMoneyMade = "Total online production: $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_8__["formatNumber"])(workerscript.scriptRef.onlineMoneyMade, 2); @@ -53697,21 +53708,21 @@ function updateActiveScriptsText(workerscript, item, itemName) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Corporation", function() { return Corporation; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Literature_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Literature.js */ 52); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player.js */ 0); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Literature__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Literature */ 52); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Player */ 0); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! decimal.js */ 23); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! numeral/min/numeral.min */ 13); /* harmony import */ var numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10__); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -53749,14 +53760,14 @@ CorporationState.prototype.getState = function() { } CorporationState.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("CorporationState", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("CorporationState", this); } CorporationState.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(CorporationState, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(CorporationState, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.CorporationState = CorporationState; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.CorporationState = CorporationState; /* Constants */ var TOTALSHARES = 1e9; //Total number of shares you have at your company @@ -53917,14 +53928,14 @@ Material.prototype.processMarket = function() { } Material.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Material", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Material", this); } Material.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Material, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Material, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Material = Material; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Material = Material; //Map of material (by name) to their sizes (how much space it takes in warehouse) let MaterialSizes = { @@ -53972,12 +53983,12 @@ function Product(params={}) { //These values are specific to a city //The data is [qty, prod, sell] this.data = { - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: [0, 0, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: [0, 0, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: [0, 0, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: [0, 0, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: [0, 0, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: [0, 0, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: [0, 0, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: [0, 0, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: [0, 0, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: [0, 0, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: [0, 0, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: [0, 0, 0], } //Only applies for location-based products like restaurants/hospitals @@ -53992,21 +54003,21 @@ function Product(params={}) { //[Whether production/sale is limited, limit amount] this.prdman = { - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: [false, 0], } this.sllman = { - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: [false, 0], - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: [false, 0], + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: [false, 0], } } @@ -54070,7 +54081,7 @@ Product.prototype.finishProduct = function(employeeProd, industry) { var advMult = 1 + (Math.pow(this.advCost, 0.1) / 100); this.mku = 100 / (advMult * Math.pow((this.qlt + 0.001), 0.65) * (busRatio + mgmtRatio)); this.dmd = industry.awareness === 0 ? 20 : Math.min(100, advMult * (100 * (industry.popularity / industry.awareness))); - this.cmp = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(0, 70); + this.cmp = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(0, 70); //Calculate the product's required materials //For now, just set it to be the same as the requirements to make materials @@ -54111,14 +54122,14 @@ Product.prototype.calculateRating = function(industry) { } Product.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Product", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Product", this); } Product.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Product, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Product, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Product = Product; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Product = Product; var Industries = { Energy: "Energy", @@ -54282,27 +54293,27 @@ var IndustryUpgrades = { var empManualAssignmentModeActive = false; function Industry(params={}) { this.offices = { //Maps locations to offices. 0 if no office at that location - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: new OfficeSpace({ - loc:_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chongqing]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: new OfficeSpace({ + loc:_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12, size:OfficeInitialSize, }), - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: 0 + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: 0 }; this.warehouses = { //Maps locations to warehouses. 0 if no warehouse at that location - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chonqing]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: new Warehouse({ - loc:_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Aevum]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Chonqing]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12]: new Warehouse({ + loc:_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12, size: WarehouseInitialSize, }), - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: 0, - [_Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: 0 + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].NewTokyo]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Ishima]: 0, + [_Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Volhaven]: 0 }; this.name = params.name ? params.name : 0; @@ -54639,7 +54650,7 @@ Industry.prototype.process = function(marketCycles=1, state, company) { console.log("ERROR: NaN in Corporation's computed revenue/expenses"); console.log(this.thisCycleRevenue.toString()); console.log(this.thisCycleExpenses.toString()); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Something went wrong when compting Corporation's revenue/expenses. This is a bug. Please report to game developer"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Something went wrong when compting Corporation's revenue/expenses. This is a bug. Please report to game developer"); this.thisCycleRevenue = new decimal_js__WEBPACK_IMPORTED_MODULE_6__["default"](0); this.thisCycleExpenses = new decimal_js__WEBPACK_IMPORTED_MODULE_6__["default"](0); } @@ -54729,7 +54740,7 @@ Industry.prototype.processProductMarket = function(marketCycles=1) { for (var name in this.products) { if (this.products.hasOwnProperty(name)) { var product = this.products[name]; - var change = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(1, 3) * 0.0004; + var change = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(1, 3) * 0.0004; if (this.type === Industries.Pharmaceutical || this.type === Industries.Software || this.type === Industries.Robotics) { change *= 3; @@ -54947,7 +54958,7 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { try { sellAmt = eval(tmp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error evaluating your sell amount for material " + mat.name + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error evaluating your sell amount for material " + mat.name + " in " + this.name + "'s " + city + " office. The sell amount " + "is being set to zero"); sellAmt = 0; @@ -54990,13 +55001,13 @@ Industry.prototype.processMaterials = function(marketCycles=1, company) { try { amt = eval(amt); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Calculating export for " + mat.name + " in " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Calculating export for " + mat.name + " in " + this.name + "'s " + city + " division failed with " + "error: " + e); continue; } if (isNaN(amt)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error calculating export amount for " + mat.name + " in " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error calculating export amount for " + mat.name + " in " + this.name + "'s " + city + " division."); continue; } @@ -55211,7 +55222,7 @@ Industry.prototype.processProduct = function(marketCycles=1, product, corporatio try { tmp = eval(tmp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error evaluating your sell price expression for " + product.name + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error evaluating your sell price expression for " + product.name + " in " + this.name + "'s " + city + " office. Sell price is being set to MAX"); tmp = maxSell; } @@ -55278,7 +55289,7 @@ Industry.prototype.upgrade = function(upgrade, refs) { this.awareness += (3 * advMult); this.popularity += (1 * advMult); this.awareness *= (1.01 * advMult); - this.popularity *= ((1 + Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(1, 3) / 100) * advMult); + this.popularity *= ((1 + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(1, 3) / 100) * advMult); break; default: console.log("ERROR: Un-implemented function index: " + upgN); @@ -55332,14 +55343,14 @@ Industry.prototype.getMarketFactor = function(mat) { } Industry.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Industry", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Industry", this); } Industry.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Industry, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Industry, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Industry = Industry; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Industry = Industry; var EmployeePositions = { Operations: "Operations", @@ -55358,17 +55369,17 @@ function Employee(params={}) { this.name = params.name ? params.name : "Bobby"; //Morale, happiness, and energy are 0-100 - this.mor = params.morale ? params.morale : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100); - this.hap = params.happiness ? params.happiness : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100); - this.ene = params.energy ? params.energy : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100); + this.mor = params.morale ? params.morale : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100); + this.hap = params.happiness ? params.happiness : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100); + this.ene = params.energy ? params.energy : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100); - this.age = params.age ? params.age : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(20, 50); - this.int = params.intelligence ? params.intelligence : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); - this.cha = params.charisma ? params.charisma : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); - this.exp = params.experience ? params.experience : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); - this.cre = params.creativity ? params.creativity : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); - this.eff = params.efficiency ? params.efficiency : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); - this.sal = params.salary ? params.salary : Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(0.1, 5); + this.age = params.age ? params.age : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(20, 50); + this.int = params.intelligence ? params.intelligence : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); + this.cha = params.charisma ? params.charisma : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); + this.exp = params.experience ? params.experience : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); + this.cre = params.creativity ? params.creativity : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); + this.eff = params.efficiency ? params.efficiency : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(10, 50); + this.sal = params.salary ? params.salary : Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(0.1, 5); this.pro = 0; //Productivity, This is calculated this.loc = params.loc ? params.loc : ""; @@ -55468,7 +55479,7 @@ Employee.prototype.createUI = function(panel, corporation) { effInt = this.int * corporation.getEmployeeIntMultiplier(), effEff = this.eff * corporation.getEmployeeEffMultiplier(); panel.style.color = "white"; - panel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + panel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { id:"cmpy-mgmt-employee-" + this.name + "-panel-text", innerHTML:"Morale: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(this.mor, 3) + "
" + "Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(this.hap, 3) + "
" + @@ -55483,10 +55494,10 @@ Employee.prototype.createUI = function(panel, corporation) { })); //Selector for employee position - var selector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {}); + var selector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {}); for (var key in EmployeePositions) { if (EmployeePositions.hasOwnProperty(key)) { - selector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + selector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { text: EmployeePositions[key], value: EmployeePositions[key], })); @@ -55533,14 +55544,14 @@ Employee.prototype.updateUI = function(panel, corporation) { } Employee.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Employee", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Employee", this); } Employee.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Employee, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Employee, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Employee = Employee; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Employee = Employee; var OfficeSpaceTiers = { Basic: "Basic", @@ -55617,14 +55628,14 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { if (document.getElementById("cmpy-mgmt-hire-employee-popup") != null) {return;} //Generate three random employees (meh, decent, amazing) - var mult1 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(25, 50)/100, - mult2 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(51, 75)/100, - mult3 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(76, 100)/100; - var int = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - cha = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - exp = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - cre = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - eff = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + var mult1 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(25, 50)/100, + mult2 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(51, 75)/100, + mult3 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(76, 100)/100; + var int = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + cha = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + exp = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + cre = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + eff = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), sal = 2.2 * (int + cha + exp + cre + eff); var emp1 = new Employee({ @@ -55654,12 +55665,12 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { salary: sal * mult3, }); - var text = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h1", { + var text = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h1", { innerHTML: "Select one of the following candidates for hire:", }); var createEmpDiv = function(employee, office) { - var div = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var div = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-find-employee-option", innerHTML: "Intelligence: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(employee.int, 1) + "
" + "Charisma: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(employee.cha, 1) + "
" + @@ -55669,19 +55680,19 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { "Salary: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(employee.sal).format('$0.000a') + " \ s
", clickListener:()=>{ office.hireEmployee(employee, parentRefs); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); return false; } }); return div; }; - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", float:"right", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-hire-employee-popup"); return false; } }); @@ -55692,32 +55703,32 @@ OfficeSpace.prototype.findEmployees = function(parentRefs) { createEmpDiv(emp3, this), cancelBtn]; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])("cmpy-mgmt-hire-employee-popup", elems); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])("cmpy-mgmt-hire-employee-popup", elems); } OfficeSpace.prototype.hireEmployee = function(employee, parentRefs) { var company = parentRefs.corporation, division = parentRefs.division; - var yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxGetNoButton"])(); + var yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxGetNoButton"])(); yesBtn.innerHTML = "Hire"; noBtn.innerHTML = "Cancel"; yesBtn.addEventListener("click", ()=>{ - var name = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxGetInput"])(); + var name = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxGetInput"])(); for (var i = 0; i < this.employees.length; ++i) { if (this.employees[i].name === name) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You already have an employee with this nickname! Please give every employee a unique nickname."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You already have an employee with this nickname! Please give every employee a unique nickname."); return false; } } employee.name = name; this.employees.push(employee); company.displayDivisionContent(division, currentCityUi); - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxCreate"])("Give your employee a nickname!"); + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoTxtInpBoxCreate"])("Give your employee a nickname!"); } OfficeSpace.prototype.hireRandomEmployee = function(parentRefs) { @@ -55725,12 +55736,12 @@ OfficeSpace.prototype.hireRandomEmployee = function(parentRefs) { if (document.getElementById("cmpy-mgmt-hire-employee-popup") != null) {return;} //Generate three random employees (meh, decent, amazing) - var mult = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(76, 100)/100; - var int = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - cha = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - exp = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - cre = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), - eff = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + var mult = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(76, 100)/100; + var int = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + cha = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + exp = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + cre = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), + eff = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["getRandomInt"])(50, 100), sal = 2.2 * (int + cha + exp + cre + eff); var emp = new Employee({ @@ -55777,14 +55788,14 @@ OfficeSpace.prototype.unassignEmployeeFromJob = function(job) { } OfficeSpace.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("OfficeSpace", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("OfficeSpace", this); } OfficeSpace.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(OfficeSpace, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(OfficeSpace, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.OfficeSpace = OfficeSpace; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.OfficeSpace = OfficeSpace; function Warehouse(params={}) { this.loc = params.loc ? params.loc : ""; @@ -55848,8 +55859,8 @@ Warehouse.prototype.createUI = function(parentRefs) { return; } var company = parentRefs.company, industry = parentRefs.industry; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryWarehousePanel); - industryWarehouseStorageText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryWarehousePanel); + industryWarehouseStorageText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { display:"inline-block", class:"tooltip", color: this.sizeUsed >= this.size ? "red" : "white", }); @@ -55857,7 +55868,7 @@ Warehouse.prototype.createUI = function(parentRefs) { //Upgrade warehouse size button var upgradeCost = WarehouseUpgradeBaseCost * Math.pow(1.07, this.level+1); - industryWarehouseUpgradeSizeButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryWarehouseUpgradeSizeButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Upgrade Warehouse Size - " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(upgradeCost).format('$0.000a'), display:"inline-block", class: company.funds.lt(upgradeCost) ? "a-link-button-inactive" : "a-link-button", @@ -55907,23 +55918,23 @@ Warehouse.prototype.createUI = function(parentRefs) { reqRatioText += "one of its Products"; } - industryWarehousePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryWarehousePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML:reqText, tooltipleft:reqRatioText })); //Current state - industryWarehouseStateText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p"); + industryWarehouseStateText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p"); industryWarehousePanel.appendChild(industryWarehouseStateText); //Smart Supply Enable/Disable if (company.unlockUpgrades[1]) { if (this.smartSupplyEnabled == null) {this.smartSupplyEnabled = false;} var smartSupplyCheckboxId = "cmpy-mgmt-smart-supply-checkbox"; - industryWarehousePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("label", { + industryWarehousePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("label", { for:smartSupplyCheckboxId, innerText:"Enable Smart Supply", color:"white" })); - industrySmartSupplyCheckbox = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + industrySmartSupplyCheckbox = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"checkbox", id:smartSupplyCheckboxId, margin:"3px", changeListener:()=>{ this.smartSupplyEnabled = industrySmartSupplyCheckbox.checked; @@ -55934,18 +55945,18 @@ Warehouse.prototype.createUI = function(parentRefs) { } //Materials - industryWarehousePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryWarehousePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "
Materials:
", })); - industryWarehouseMaterials = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("ul"); + industryWarehouseMaterials = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("ul"); industryWarehousePanel.appendChild(industryWarehouseMaterials); //Products if (industry.makesProducts && Object.keys(industry.products).length > 0) { - industryWarehousePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryWarehousePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "
Products:
", })); - industryWarehouseProducts = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("ul"); + industryWarehouseProducts = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("ul"); industryWarehousePanel.appendChild(industryWarehouseProducts); } @@ -56002,7 +56013,7 @@ Warehouse.prototype.updateUI = function(parentRefs) { industryWarehouseStateText.innerText = stateText; //Materials - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryWarehouseMaterials); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryWarehouseMaterials); for (var matName in this.materials) { if (this.materials.hasOwnProperty(matName) && this.materials[matName] instanceof Material) { if (Object.keys(industry.reqMats).includes(matName) || industry.prodMats.includes(matName) || @@ -56014,7 +56025,7 @@ Warehouse.prototype.updateUI = function(parentRefs) { } //Products - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryWarehouseProducts); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryWarehouseProducts); if (industry.makesProducts && Object.keys(industry.products).length > 0) { for (var productName in industry.products) { if (industry.products.hasOwnProperty(productName) && industry.products[productName] instanceof Product) { @@ -56032,7 +56043,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { var company = parentRefs.company, industry = parentRefs.industry; var purchasePopupId = "cmpy-mgmt-material-purchase-popup", sellPopupid = "cmpy-mgmt-material-sell-popup"; - var div = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var div = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-warehouse-material-div", }); @@ -56059,12 +56070,12 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { "The quality of your material. Higher quality " + "will lead to more sales

"; - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: innerTxt, id: "cmpy-mgmt-warehouse-" + matName + "-text", display:"inline-block", })); - var buttonPanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var buttonPanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { display:"inline-block", }); div.appendChild(buttonPanel); @@ -56076,79 +56087,79 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { innerText: "Buy (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(mat.buy, 3) + ")", display:"inline-block", class: tutorial ? "a-link-button flashing-button" : "a-link-button", clickListener:()=>{ - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Enter the amount of " + mat.name + " you would like " + "to purchase per second. This material's cost changes constantly" }); var confirmBtn; - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", value:mat.buy ? mat.buy : null, placeholder: "Purchase amount", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", clickListener:()=>{ if (isNaN(input.value)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid amount"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid amount"); } else { mat.buy = parseFloat(input.value); if (isNaN(mat.buy)) {mat.buy = 0;} - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(purchasePopupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(purchasePopupId); this.createUI(parentRefs); return false; } } }); - var clearButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var clearButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Clear Purchase", class:"a-link-button", clickListener:()=>{ mat.buy = 0; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(purchasePopupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(purchasePopupId); this.createUI(parentRefs); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(purchasePopupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(purchasePopupId); } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(purchasePopupId, [txt, input, confirmBtn, clearButton, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(purchasePopupId, [txt, input, confirmBtn, clearButton, cancelBtn]); input.focus(); } }; if (tutorial) { buyButtonParams.tooltip = "Purchase your required materials to get production started!"; } - buttonPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", buyButtonParams)); + buttonPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", buyButtonParams)); //Button to manage exports if (company.unlockUpgrades[0] === 1) { //Export unlock upgrade function createExportPopup() { var popupId = "cmpy-mgmt-export-popup"; - var exportTxt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var exportTxt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Select the industry and city to export this material to, as well as " + "how much of this material to export per second. You can set the export " + "amount to 'MAX' to export all of the materials in this warehouse." }); //Select industry and city to export to - var citySelector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {class: "dropdown"}); - var industrySelector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", { + var citySelector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {class: "dropdown"}); + var industrySelector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", { class: "dropdown", changeListener:()=>{ var industryName = industrySelector.options[industrySelector.selectedIndex].value; for (var foo = 0; foo < company.divisions.length; ++foo) { if (company.divisions[foo].name == industryName) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["clearSelector"])(citySelector); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["clearSelector"])(citySelector); var selectedIndustry = company.divisions[foo]; for (var cityName in company.divisions[foo].warehouses) { if (company.divisions[foo].warehouses[cityName] instanceof Warehouse) { - citySelector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + citySelector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { value:cityName, text:cityName, })); } @@ -56160,7 +56171,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { }); for (var i = 0; i < company.divisions.length; ++i) { - industrySelector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + industrySelector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { text:company.divisions[i].name, value:company.divisions[i].name, })); //End create element option } //End for @@ -56171,7 +56182,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { for (var cityName in company.divisions[i].warehouses) { if (company.divisions[i].warehouses.hasOwnProperty(cityName) && company.divisions[i].warehouses[cityName] instanceof Warehouse) { - citySelector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + citySelector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { value:cityName, text:cityName, })); } @@ -56181,12 +56192,12 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { } //Select amount to export - var exportAmount = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var exportAmount = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { class: "text-input", placeholder:"Export amount / s" }); - var exportBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var exportBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Export", clickListener:()=>{ var industryName = industrySelector.options[industrySelector.selectedIndex].text, @@ -56199,59 +56210,59 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid expression entered for export amount: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid expression entered for export amount: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid amount entered for export"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid amount entered for export"); return; } var exportObj = {ind:industryName, city:cityName, amt:sanitizedAmt}; mat.exp.push(exportObj); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Cancel", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var currExportsText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var currExportsText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Below is a list of all current exports of this material from this warehouse. " + "Clicking on one of the exports below will REMOVE that export." }); var currExports = []; for (var i = 0; i < mat.exp.length; ++i) { (function(i, mat, currExports){ - currExports.push(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + currExports.push(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-existing-export", innerHTML: "Industry: " + mat.exp[i].ind + "
" + "City: " + mat.exp[i].city + "
" + "Amount/s: " + mat.exp[i].amt, clickListener:()=>{ mat.exp.splice(i, 1); //Remove export object - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); createExportPopup(); } })); })(i, mat, currExports); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [exportTxt, industrySelector, citySelector, exportAmount, + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [exportTxt, industrySelector, citySelector, exportAmount, exportBtn, cancelBtn, currExportsText].concat(currExports)); } - buttonPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + buttonPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Export", display:"inline-block", class:"a-link-button", clickListener:()=>{createExportPopup();} })); } - buttonPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); // Force line break + buttonPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); // Force line break //Button to set sell amount var innerTextString; @@ -56270,10 +56281,10 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { innerTextString = "Sell (0.000/0.000)"; } - buttonPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + buttonPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText: innerTextString, display:"inline-block", class:"a-link-button", clickListener:()=>{ - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Enter the maximum amount of " + mat.name + " you would like " + "to sell per second, as well as the price at which you would " + "like to sell at.

" + @@ -56288,9 +56299,9 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { "changing price that depends on the market price. For example, if you set the sell price " + "to 'MP+10' then it will always be sold at $10 above the market price.", }); - var br = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {}); + var br = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {}); var confirmBtn; - var inputQty = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var inputQty = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"text", marginTop:"4px", value: mat.sllman[1] ? mat.sllman[1] : null, placeholder: "Sell amount", onkeyup:(e)=>{ @@ -56298,7 +56309,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { if (e.keyCode === 13) {confirmBtn.click();} } }); - var inputPx = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var inputPx = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"text", marginTop:"4px", value: mat.sCost ? mat.sCost : null, placeholder: "Sell price", onkeyup:(e)=>{ @@ -56306,7 +56317,7 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", margin:"6px", clickListener:()=>{ //Parse price @@ -56316,12 +56327,12 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); return false; } @@ -56340,19 +56351,19 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); return false; } mat.sllman[0] = true; mat.sllman[1] = qty; //Use sanitized input } else if (isNaN(inputQty.value)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric or 'MAX'"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric or 'MAX'"); return false; } else { var qty = parseFloat(inputQty.value); @@ -56367,17 +56378,17 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { } this.createUI(parentRefs); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(sellPopupid); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(sellPopupid); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", margin: "6px", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(sellPopupid); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(sellPopupid); } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(sellPopupid, [txt, br, inputQty, inputPx, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(sellPopupid, [txt, br, inputQty, inputPx, confirmBtn, cancelBtn]); inputQty.focus(); } })); @@ -56388,13 +56399,13 @@ Warehouse.prototype.createMaterialUI = function(mat, matName, parentRefs) { Warehouse.prototype.createProductUI = function(product, parentRefs) { var company = parentRefs.company, industry = parentRefs.industry, city = currentCityUi; - var div = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var div = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-warehouse-product-div" }); //Products being designed TODO if (!product.fin) { - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Designing " + product.name + "...
" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(product.prog, 2) + "% complete", })); @@ -56411,7 +56422,7 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { } var totalGain = product.data[city][1] - product.data[city][2]; //Production - sale - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "

" + product.name + ": " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(product.data[city][0], 3) + //Quantity "(" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(totalGain, 3) + "/s)" + "Prod: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(product.data[city][1], 3) + "/s
" + @@ -56431,7 +56442,7 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { "Setting the sale price above this may result in less sales. Setting the sale price below this may result " + "in more sales.

" })); - var buttonPanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var buttonPanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { display:"inline-block", }); div.appendChild(buttonPanel); @@ -56446,11 +56457,11 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { sellInnerTextString += (" @ " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(product.sCost).format("$0.000a")); } } - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:sellInnerTextString, class:"a-link-button", display:"inline-block",margin:"6px", clickListener:()=>{ var popupId = "cmpy-mgmt-sell-product-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML:"Enter the maximum amount of " + product.name + " you would like " + "to sell per second, as well as the price at which you would like to " + "sell it at.

" + @@ -56468,21 +56479,21 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { "will always be sold at five times the estimated market price.", }); var confirmBtn; - var inputQty = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var inputQty = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"text", value:product.sllman[city][1] ? product.sllman[city][1] : null, placeholder: "Sell amount", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - var inputPx = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var inputPx = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"text", value: product.sCost ? product.sCost : null, placeholder: "Sell price", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Confirm", clickListener:()=>{ //Parse price @@ -56495,18 +56506,18 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell quantity field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell quantity field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell quantity field."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell quantity field."); return false; } product.sCost = price; //Use sanitized price } else { var cost = parseFloat(inputPx.value); if (isNaN(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell price field"); return false; } product.sCost = cost; @@ -56522,18 +56533,18 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { try { temp = eval(temp); } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field: " + e); return false; } if (temp == null || isNaN(temp)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value or expression for sell price field"); return false; } product.sllman[city][0] = true; product.sllman[city][1] = qty; //Use sanitized input } else if (isNaN(inputQty.value)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for sell quantity field! Must be numeric"); return false; } else { var qty = parseFloat(inputQty.value); @@ -56546,55 +56557,55 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { } } this.createUI(parentRefs); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, inputQty, inputPx, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, inputQty, inputPx, confirmBtn, cancelBtn]); inputQty.focus(); } })); - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br",{})); //force line break + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br",{})); //force line break //Limit production button var limitProductionInnerText = "Limit Production"; if (product.prdman[city][0]) { limitProductionInnerText += " (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(product.prdman[city][1], 3) + ")"; } - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:limitProductionInnerText,display:"inline-block", clickListener:()=>{ var popupId = "cmpy-mgmt-limit-product-production-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Enter a limit to the amount of this product you would " + "like to product per second. Leave the box empty to set no limit." }); var confirmBtn; - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Limit", onkeyup:(e)=>{ e.preventDefault(); if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Limit production", margin:'6px', clickListener:()=>{ if (input.value === "") { product.prdman[city][0] = false; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } var qty = parseFloat(input.value); if (isNaN(qty)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value entered"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value entered"); return false; } if (qty < 0) { @@ -56603,62 +56614,62 @@ Warehouse.prototype.createProductUI = function(product, parentRefs) { product.prdman[city][0] = true; product.prdman[city][1] = qty; } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Cancel", margin:"6px", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, input, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, input, confirmBtn, cancelBtn]); } })); //Discontinue button - div.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + div.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:'a-link-button', display:"inline-block",innerText:"Discontinue", clickListener:()=>{ var popupId = "cmpy-mgmt-discontinue-product-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Are you sure you want to do this? Discontinuing a product " + "removes it completely and permanently. You will no longer " + "produce this product and all of its existing stock will be " + "removed and left unsold", }); - var confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button",innerText:"Discontinue", clickListener:()=>{ industry.discontinueProduct(product, parentRefs); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, confirmBtn, cancelBtn]); } })); return div; } Warehouse.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Warehouse", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Warehouse", this); } Warehouse.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Warehouse, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Warehouse, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Warehouse = Warehouse; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Warehouse = Warehouse; //Corporation Unlock Upgrades //Upgrades for entire corporation, unlocks features, either you have it or you dont @@ -56805,7 +56816,7 @@ Corporation.prototype.process = function() { var profit = this.revenue.minus(this.expenses); var cycleProfit = profit.times(marketCycles * SecsPerMarketCycle); if (isNaN(this.funds)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("There was an error calculating your Corporations funds and they got reset to 0. " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("There was an error calculating your Corporations funds and they got reset to 0. " + "This is a bug. Please report to game developer.

" + "(Your funds have been set to $150b for the inconvenience)"); this.funds = new decimal_js__WEBPACK_IMPORTED_MODULE_6__["default"](150e9); @@ -56821,7 +56832,7 @@ Corporation.prototype.process = function() { this.state.nextState(); - if (_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Corporation) {this.updateUIContent();} + if (_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Corporation) {this.updateUIContent();} } } @@ -56841,7 +56852,7 @@ Corporation.prototype.determineValuation = function() { } val -= (val % 1e6); //Round down to nearest millionth } - return val * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].CorporationValuation; + return val * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].CorporationValuation; } Corporation.prototype.getInvestment = function() { @@ -56864,8 +56875,8 @@ Corporation.prototype.getInvestment = function() { } var funding = val * percShares * 4, investShares = Math.floor(TOTALSHARES * percShares), - yesBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxGetYesButton"])(), - noBtn = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxGetNoButton"])(); + yesBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxGetYesButton"])(), + noBtn = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxGetNoButton"])(); yesBtn.innerHTML = "Accept"; noBtn.innerHML = "Reject"; yesBtn.addEventListener("click", ()=>{ @@ -56873,12 +56884,12 @@ Corporation.prototype.getInvestment = function() { this.funds = this.funds.plus(funding); this.numShares -= investShares; this.displayCorporationOverviewContent(); - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxClose"])(); }); noBtn.addEventListener("click", ()=>{ - return Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxClose"])(); + return Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxClose"])(); }); - Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxCreate"])("An investment firm has offered you " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(funding).format('$0.000a') + + Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_12__["yesNoBoxCreate"])("An investment firm has offered you " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(funding).format('$0.000a') + " in funding in exchange for a " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(percShares*100).format("0.000a") + "% stake in the company (" + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(investShares).format('0.000a') + " shares).

" + "Do you accept or reject this offer?"); @@ -56887,7 +56898,7 @@ Corporation.prototype.getInvestment = function() { Corporation.prototype.goPublic = function() { var goPublicPopupId = "cmpy-mgmt-go-public-popup"; var initialSharePrice = this.determineValuation() / (TOTALSHARES); - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Enter the number of shares you would like to issue " + "for your IPO. These shares will be publicly sold " + "and you will no longer own them. Your Corporation will receive " + @@ -56898,7 +56909,7 @@ Corporation.prototype.goPublic = function() { "You have a total of " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(this.numShares).format("0.000a") + " of shares that you can issue.", }); var yesBtn; - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder: "Shares to issue", onkeyup:(e)=>{ @@ -56906,19 +56917,19 @@ Corporation.prototype.goPublic = function() { if (e.keyCode === 13) {yesBtn.click();} } }); - var br = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {}); - yesBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var br = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {}); + yesBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Go Public", clickListener:()=>{ var numShares = Math.round(input.value); var initialSharePrice = this.determineValuation() / (TOTALSHARES); if (isNaN(numShares)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for number of issued shares"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for number of issued shares"); return false; } if (numShares > this.numShares) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error: You don't have that many shares to issue!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Error: You don't have that many shares to issue!"); return false; } this.public = true; @@ -56927,19 +56938,19 @@ Corporation.prototype.goPublic = function() { this.numShares -= numShares; this.funds = this.funds.plus(numShares * initialSharePrice); this.displayCorporationOverviewContent(); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(goPublicPopupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(goPublicPopupId); return false; } }); - var noBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var noBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(goPublicPopupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(goPublicPopupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(goPublicPopupId, [txt, br, input, yesBtn, noBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(goPublicPopupId, [txt, br, input, yesBtn, noBtn]); } Corporation.prototype.updateSharePrice = function() { @@ -56959,7 +56970,7 @@ Corporation.prototype.unlock = function(upgrade) { this.unlockUpgrades.push(0); } if (this.funds.lt(price)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough funds to unlock this!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough funds to unlock this!"); return; } this.unlockUpgrades[upgN] = 1; @@ -56974,7 +56985,7 @@ Corporation.prototype.upgrade = function(upgrade) { while (this.upgradeMultipliers.length <= upgN) {this.upgradeMultipliers.push(1);} var totalCost = basePrice * Math.pow(priceMult, this.upgrades[upgN]); if (this.funds.lt(totalCost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough funds to purchase this!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough funds to purchase this!"); return; } ++this.upgrades[upgN]; @@ -57068,19 +57079,19 @@ var companyManagementDiv, companyManagementHeaderTabs, companyManagementPanel, industryWarehouseMaterials, industryWarehouseProducts, headerTabs, cityTabs; Corporation.prototype.createUI = function() { - companyManagementDiv = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + companyManagementDiv = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { id:"cmpy-mgmt-container", position:"fixed", class:"generic-menupage-container" }); - companyManagementHeaderTabs = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {id:"cmpy-mgmt-header-tabs"}); + companyManagementHeaderTabs = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {id:"cmpy-mgmt-header-tabs"}); companyManagementDiv.appendChild(companyManagementHeaderTabs); //Create division/industry tabs at the top this.updateUIHeaderTabs(); //Create the 'panel' that will have the actual content in the UI - companyManagementPanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {id:"cmpy-mgmt-panel"}); + companyManagementPanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {id:"cmpy-mgmt-panel"}); companyManagementDiv.appendChild(companyManagementPanel); document.getElementById("entire-game-container").appendChild(companyManagementDiv); @@ -57089,14 +57100,14 @@ Corporation.prototype.createUI = function() { Corporation.prototype.updateUIHeaderTabs = function() { if (companyManagementHeaderTabs) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(companyManagementHeaderTabs); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(companyManagementHeaderTabs); } else { console.log("ERROR: Header tabs div has not yet been created when Corporation.updateUIHeaderTabs() is called"); return; } //Corporation overview tabs - var cmpyOverviewHdrTab = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { + var cmpyOverviewHdrTab = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { id:"cmpy-mgmt-company-tab", class:"cmpy-mgmt-header-tab", innerText:this.name, @@ -57115,27 +57126,27 @@ Corporation.prototype.updateUIHeaderTabs = function() { } //Create a tab to expand into a new industry - companyManagementHeaderTabs.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { + companyManagementHeaderTabs.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { id:'cmpy-mgmt-expand-industry-tab', class:"cmpy-mgmt-header-tab", innerText:"Expand into new Industry", clickListener: ()=>{ if (document.getElementById("cmpy-mgmt-expand-industry-popup") != null) {return;} - var container = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var container = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"popup-box-container", id:"cmpy-mgmt-expand-industry-popup", }); - var content = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {class:"popup-box-content"}); - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var content = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {class:"popup-box-content"}); + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Create a new division to expand into a new industry:", }); - var selector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", { + var selector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", { class:"dropdown" }); - var industryDescription = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); + var industryDescription = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); var yesBtn; - var nameInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var nameInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"text", id:"cmpy-mgmt-expand-industry-name-input", class: "text-input", @@ -57147,11 +57158,11 @@ Corporation.prototype.updateUIHeaderTabs = function() { if (e.keyCode === 13) {yesBtn.click();} } }); - var nameLabel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("label", { + var nameLabel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("label", { for:"cmpy-mgmt-expand-industry-name-input", innerText:"Division name: " }); - yesBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { + yesBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { class:"popup-box-button", innerText:"Create Division", clickListener: ()=>{ @@ -57160,14 +57171,14 @@ Corporation.prototype.updateUIHeaderTabs = function() { for (var i = 0; i < this.divisions.length; ++i) { if (this.divisions[i].name === newDivisionName) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("This name is already in use!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("This name is already in use!"); return false; } } if (this.funds.lt(IndustryStartingCosts[ind])) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Not enough money to create a new division in this industry"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Not enough money to create a new division in this industry"); } else if (newDivisionName === "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("New division must have a name!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("New division must have a name!"); } else { this.funds = this.funds.minus(IndustryStartingCosts[ind]); var newInd = new Industry({ @@ -57177,17 +57188,17 @@ Corporation.prototype.updateUIHeaderTabs = function() { this.divisions.push(newInd); this.updateUIHeaderTabs(); this.selectHeaderTab(headerTabs[headerTabs.length-2]); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); - this.displayDivisionContent(newInd, _Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); + this.displayDivisionContent(newInd, _Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12); } return false; } }); - var noBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { + var noBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { class:"popup-box-button", innerText:"Cancel", clickListener: function() { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])("cmpy-mgmt-expand-industry-popup"); return false; } }); @@ -57201,7 +57212,7 @@ Corporation.prototype.updateUIHeaderTabs = function() { //Add industry types to selector //Have Agriculture be first as recommended option if (!ownedIndustries["Agriculture"]) { - selector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + selector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { text:Industries["Agriculture"], value:"Agriculture" })); } @@ -57209,7 +57220,7 @@ Corporation.prototype.updateUIHeaderTabs = function() { for (var key in Industries) { if (key !== "Agriculture" && Industries.hasOwnProperty(key) && !ownedIndustries[key]) { var ind = Industries[key]; - selector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + selector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { text: ind,value:key, })); } @@ -57254,13 +57265,13 @@ Corporation.prototype.selectHeaderTab = function(currentTab) { Corporation.prototype.createDivisionUIHeaderTab = function(division) { var tabId = "cmpy-mgmt-" + division.name + "-tab"; - var tab = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { + var tab = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { id:tabId, class:"cmpy-mgmt-header-tab", innerText:division.name, clickListener:()=>{ this.selectHeaderTab(tab); - this.displayDivisionContent(division, _Location_js__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12); + this.displayDivisionContent(division, _Location__WEBPACK_IMPORTED_MODULE_4__["Locations"].Sector12); return false; } }); @@ -57295,7 +57306,7 @@ Corporation.prototype.updateUIContent = function() { Corporation.prototype.displayCorporationOverviewContent = function() { this.clearUIPanel(); - companyManagementPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + companyManagementPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { id:"cmpy-mgmt-overview-text", })); if (headerTabs && headerTabs.length >= 1) { @@ -57303,7 +57314,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } //Check if player has Corporation Handbook - var homeComp = _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].getHomeComputer(), hasHandbook = false, + var homeComp = _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].getHomeComputer(), hasHandbook = false, handbookFn = "corporation-management-handbook.lit"; for (var i = 0; i < homeComp.messages.length; ++i) { if (Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["isString"])(homeComp.messages[i]) && homeComp.messages[i] === handbookFn) { @@ -57312,14 +57323,14 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } - companyManagementPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + companyManagementPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Getting Started Guide", display:"inline-block", tooltip:"Get a copy of and read 'The Complete Handbook for Creating a Successful Corporation.' " + "This is a .lit file that guides you through the beginning of setting up a Corporation and " + "provides some tips/pointers for helping you get started with managing it.", clickListener:()=>{ if (!hasHandbook) {homeComp.messages.push(handbookFn);} - Object(_Literature_js__WEBPACK_IMPORTED_MODULE_3__["showLiterature"])(handbookFn); + Object(_Literature__WEBPACK_IMPORTED_MODULE_3__["showLiterature"])(handbookFn); return false; } })); @@ -57327,21 +57338,21 @@ Corporation.prototype.displayCorporationOverviewContent = function() { //Investors if (this.public) { //Sell share buttons - var sellShares = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var sellShares = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Sell Shares", display:"inline-block", tooltip:"Sell your shares in the company. This is the only way to " + "profit from your business venture.", clickListener:()=>{ var popupId = "cmpy-mgmt-sell-shares-popup"; var currentStockPrice = this.sharePrice; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Enter the number of shares you would like to sell. The money from " + "selling your shares will go directly to you (NOT your Corporation). " + "The current price of your " + "company's stock is " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(currentStockPrice).format("$0.000a"), }); - var profitIndicator = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var profitIndicator = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Shares to sell", margin:"5px", inputListener: ()=> { var numShares = Math.round(input.value); @@ -57355,14 +57366,14 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } }); - var confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Sell shares", display:"inline-block", clickListener:()=>{ var shares = Math.round(input.value); if (isNaN(shares) || shares <= 0) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); } else if (shares > this.numShares) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You don't have this many shares to sell"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You don't have this many shares to sell"); } else { this.numShares -= shares; if (isNaN(this.issuedShares)) { @@ -57376,40 +57387,40 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } this.issuedShares += shares; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].gainMoney(shares * this.sharePrice); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].gainMoney(shares * this.sharePrice); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, profitIndicator, input, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, profitIndicator, input, confirmBtn, cancelBtn]); } }); //Buyback shares button - var buybackShares = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var buybackShares = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Buyback shares", display:"inline-block", tooltip:"Buy back shares you that previously issued or sold at market price.", clickListener:()=>{ var popupId = "cmpy-mgmt-buyback-shares-popup"; var currentStockPrice = this.sharePrice; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML: "Enter the number of shares you would like to buy back at market price. To purchase " + "these shares, you must use your own money (NOT your Corporation's funds). " + "The current price of your " + "company's stock is " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(currentStockPrice).format("$0.000a") + ". Your company currently has " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(this.issuedShares, 3) + " outstanding stock shares", }); - var costIndicator = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var costIndicator = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Shares to buyback", margin:"5px", inputListener: ()=> { var numShares = Math.round(input.value); @@ -57426,17 +57437,17 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } }); - var confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Buy shares", display:"inline-block", clickListener:()=>{ var shares = Math.round(input.value); var tempStockPrice = this.sharePrice; if (isNaN(shares) || shares <= 0) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value for number of shares"); } else if (shares > this.issuedShares) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: There are not this many oustanding shares to buy back"); - } else if (shares * tempStockPrice > _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].money) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have enough money to purchase this many shares (you need " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: There are not this many oustanding shares to buy back"); + } else if (shares * tempStockPrice > _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].money) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have enough money to purchase this many shares (you need " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(shares * tempStockPrice).format("$0.000a") + ")"); } else { this.numShares += shares; @@ -57451,24 +57462,24 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } this.issuedShares -= shares; - _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(shares * tempStockPrice); + _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].loseMoney(shares * tempStockPrice); //TODO REMOVE from Player money - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); } return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, costIndicator, input, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, costIndicator, input, confirmBtn, cancelBtn]); } }); @@ -57477,7 +57488,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { //If your Corporation is big enough, buy faction influence through bribes var canBribe = this.determineValuation() >= BribeThreshold; - var bribeFactions = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var bribeFactions = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class: canBribe ? "a-link-button" : "a-link-button-inactive", innerText:"Bribe Factions", display:"inline-block", tooltip:canBribe @@ -57485,19 +57496,19 @@ Corporation.prototype.displayCorporationOverviewContent = function() { : "Your Corporation is not powerful enough to bribe Faction leaders", clickListener:()=>{ var popupId = "cmpy-mgmt-bribe-factions-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"You can use Corporation funds or stock shares to bribe Faction Leaders in exchange for faction reputation" }); - var factionSelector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {margin:"3px"}); - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].factions.length; ++i) { - var facName = _Player_js__WEBPACK_IMPORTED_MODULE_5__["Player"].factions[i]; - factionSelector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + var factionSelector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {margin:"3px"}); + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].factions.length; ++i) { + var facName = _Player__WEBPACK_IMPORTED_MODULE_5__["Player"].factions[i]; + factionSelector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { text:facName, value:facName })); } - var repGainText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p"); + var repGainText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p"); var stockSharesInput; - var moneyInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var moneyInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Corporation funds", margin:"5px", inputListener:()=>{ var money = moneyInput.value == null || moneyInput.value == "" ? 0 : parseFloat(moneyInput.value); @@ -57520,7 +57531,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } }); - stockSharesInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + stockSharesInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Stock Shares", margin: "5px", inputListener:()=>{ var money = moneyInput.value == null || moneyInput.value == "" ? 0 : parseFloat(moneyInput.value); @@ -57543,51 +57554,51 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } } }); - var confirmButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Bribe", display:"inline-block", clickListener:()=>{ var money = moneyInput.value == null || moneyInput.value == "" ? 0 : parseFloat(moneyInput.value); var stockPrice = this.sharePrice; var stockShares = stockSharesInput.value == null || stockSharesInput.value == ""? 0 : Math.round(parseFloat(stockSharesInput.value)); - var fac = _Faction_js__WEBPACK_IMPORTED_MODULE_2__["Factions"][factionSelector.options[factionSelector.selectedIndex].value]; + var fac = _Faction__WEBPACK_IMPORTED_MODULE_2__["Factions"][factionSelector.options[factionSelector.selectedIndex].value]; if (fac == null) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You must select a faction to bribe"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You must select a faction to bribe"); return false; } if (isNaN(money) || isNaN(stockShares) || money < 0 || stockShares < 0) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value(s) entered"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: Invalid value(s) entered"); } else if (this.funds.lt(money)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have this much money to bribe with"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have this much money to bribe with"); } else if (stockShares > this.numShares) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have this many shares to bribe with"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("ERROR: You do not have this many shares to bribe with"); } else { var totalAmount = money + (stockShares * stockPrice); var repGain = totalAmount / BribeToRepRatio; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(repGain, 0) + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You gained " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(repGain, 0) + " reputation with " + fac.name + " by bribing them."); fac.playerReputation += repGain; this.funds = this.funds.minus(money); this.numShares -= stockShares; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } } }); - var cancelButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, factionSelector, repGainText, + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, factionSelector, repGainText, moneyInput, stockSharesInput, confirmButton, cancelButton]); } }); companyManagementPanel.appendChild(bribeFactions); } else { - var findInvestors = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var findInvestors = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class: this.fundingRound >= 4 ? "a-link-button-inactive" : "a-link-button tooltip", innerText: "Find Investors", display:"inline-block", @@ -57596,7 +57607,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } }); if (this.fundingRound < 4) { - var findInvestorsTooltip = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { + var findInvestorsTooltip = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { class:"tooltiptext", innerText:"Search for private investors who will give you startup funding in exchange " + "for equity (stock shares) in your company" @@ -57604,7 +57615,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { findInvestors.appendChild(findInvestorsTooltip); } - var goPublic = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var goPublic = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button tooltip", innerText:"Go Public", display:"inline-block", @@ -57613,7 +57624,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { return false; } }); - var goPublicTooltip = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { + var goPublicTooltip = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("span", { class:"tooltiptext", innerText: "Become a publicly traded and owned entity. Going public involves " + "issuing shares for an IPO. Once you are a public company, " + @@ -57631,10 +57642,10 @@ Corporation.prototype.displayCorporationOverviewContent = function() { //Don't show upgrades if player hasn't opened any divisions if (this.divisions.length <= 0) {return; } //Corporation Upgrades - var upgradeContainer = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + var upgradeContainer = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-upgrade-container", }); - upgradeContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h1", { + upgradeContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h1", { innerText:"Unlocks", margin:"6px", padding:"6px", })); @@ -57659,13 +57670,13 @@ Corporation.prototype.displayCorporationOverviewContent = function() { return; } - upgradeContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + upgradeContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-upgrade-div", width:"45%", innerHTML:upgrade[2] + " - " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(upgrade[1]).format("$0.000a"), tooltip: upgrade[3], clickListener:()=>{ if (corp.funds.lt(upgrade[1])) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); } else { corp.unlock(upgrade); corp.displayCorporationOverviewContent(); @@ -57677,7 +57688,7 @@ Corporation.prototype.displayCorporationOverviewContent = function() { } //Levelable upgrades - upgradeContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h1", { + upgradeContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h1", { innerText:"Upgrades", margin:"6px", padding:"6px", })); @@ -57691,13 +57702,13 @@ Corporation.prototype.displayCorporationOverviewContent = function() { var baseCost = upgrade[1], priceMult = upgrade[2]; var cost = baseCost * Math.pow(priceMult, corp.upgrades[i]); - upgradeContainer.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + upgradeContainer.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-upgrade-div", width:"45%", innerHTML:upgrade[4] + " - " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(cost).format("$0.000a"), tooltip:upgrade[5], clickListener:()=>{ if (corp.funds.lt(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); } else { corp.upgrade(upgrade); corp.displayCorporationOverviewContent(); @@ -57768,19 +57779,19 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } //Expand into new City button - companyManagementPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { + companyManagementPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { class:"cmpy-mgmt-city-tab", innerText:"Expand into new City", display:"inline-block", clickListener:()=>{ var popupId = "cmpy-mgmt-expand-city-popup"; - var text = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var text = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText: "Would you like to expand into a new city by opening an office? " + "This would cost " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(OfficeInitialCost).format('$0.000a'), }); - var citySelector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {class: "dropdown", margin:"5px"}); + var citySelector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {class: "dropdown", margin:"5px"}); for (var cityName in division.offices) { if (division.offices.hasOwnProperty(cityName)) { if (!(division.offices[cityName] instanceof OfficeSpace)) { - citySelector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + citySelector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { text: cityName, value: cityName })); @@ -57788,37 +57799,37 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } } - var confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Confirm", class:"a-link-button", display:"inline-block", margin:"3px", clickListener:()=>{ var city = citySelector.options[citySelector.selectedIndex].value; if (this.funds.lt(OfficeInitialCost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to open a new office!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to open a new office!"); } else { this.funds = this.funds.minus(OfficeInitialCost); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Opened a new office in " + city + "!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Opened a new office in " + city + "!"); division.offices[city] = new OfficeSpace({ loc:city, size:OfficeInitialSize, }); this.displayDivisionContent(division, city); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Cancel", class:"a-link-button", display:"inline-block", margin:"3px", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }) - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [text, citySelector, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [text, citySelector, confirmBtn, cancelBtn]); return false; } })); - companyManagementPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); // Force line break + companyManagementPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); // Force line break //Get office object var office = division.offices[currentCityUi]; @@ -57828,42 +57839,42 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } //Left and right panels - var leftPanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {class:"cmpy-mgmt-industry-left-panel"}); - var rightPanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {class:"cmpy-mgmt-industry-right-panel"}); + var leftPanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {class:"cmpy-mgmt-industry-left-panel"}); + var rightPanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {class:"cmpy-mgmt-industry-right-panel"}); companyManagementPanel.appendChild(leftPanel); companyManagementPanel.appendChild(rightPanel); //Different sections (Overview, Employee/Office, and Warehouse) - industryOverviewPanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + industryOverviewPanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { id:"cmpy-mgmt-industry-overview-panel", class:"cmpy-mgmt-industry-overview-panel" }); leftPanel.appendChild(industryOverviewPanel); - industryEmployeePanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + industryEmployeePanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { id:"cmpy-mgmt-employee-panel", class:"cmpy-mgmt-employee-panel" }); leftPanel.appendChild(industryEmployeePanel); - industryWarehousePanel = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + industryWarehousePanel = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { id:"cmpy-mgmt-warehouse-panel", class:"cmpy-mgmt-warehouse-panel" }); rightPanel.appendChild(industryWarehousePanel); //Industry overview text - industryOverviewText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); + industryOverviewText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {}); industryOverviewPanel.appendChild(industryOverviewText); - industryOverviewPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryOverviewPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); //Industry overview Purchases & Upgrades var numUpgrades = Object.keys(IndustryUpgrades).length; while (division.upgrades.length < numUpgrades) {division.upgrades.push(0);} //Backwards compatibility - var industryOverviewUpgrades = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {}); - industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("u", { + var industryOverviewUpgrades = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {}); + industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("u", { innerText:"Purchases & Upgrades", margin:"2px", padding:"2px", fontSize:"14px", })); - industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); for (var i = 0; i < numUpgrades; ++i) { (function(i, corp, division, office) { var upgrade = IndustryUpgrades[i.toString()]; @@ -57881,13 +57892,13 @@ Corporation.prototype.displayDivisionContent = function(division, city) { cost = baseCost * Math.pow(priceMult, division.upgrades[i]); break; } - industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { class:"cmpy-mgmt-upgrade-div", display:"inline-block", innerHTML:upgrade[4] + ' - ' + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(cost).format("$0.000a"), tooltip:upgrade[5], clickListener:()=>{ if (corp.funds.lt(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Insufficient funds"); } else { corp.funds = corp.funds.minus(cost); division.upgrade(upgrade, { @@ -57898,7 +57909,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } } })); - industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryOverviewUpgrades.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); })(i, this, division, office); } @@ -57957,17 +57968,17 @@ Corporation.prototype.displayDivisionContent = function(division, city) { "Investing money in marketing the product will help the product's sales."; //Create the button - industryOverviewPanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryOverviewPanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:createProductButtonText, margin:"6px", display:"inline-block", clickListener:()=>{ var popupId = "cmpy-mgmt-create-product-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML:createProductPopupText, }); - var designCity = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {}); + var designCity = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", {}); for (var cityName in division.offices) { if (division.offices[cityName] instanceof OfficeSpace) { - designCity.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { + designCity.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", { value:cityName, text:cityName })); @@ -57981,19 +57992,19 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } else if (division.type === Industries.RealEstate) { foo = "Property Name"; } - var productNameInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var productNameInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { placeholder:foo, }); - var lineBreak1 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br",{}); - var designInvestInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var lineBreak1 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br",{}); + var designInvestInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Design investment" }); - var marketingInvestInput = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var marketingInvestInput = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", placeholder:"Marketing investment" }); - var confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Develop Product", clickListener:()=>{ @@ -58002,13 +58013,13 @@ Corporation.prototype.displayDivisionContent = function(division, city) { var designInvest = parseFloat(designInvestInput.value), marketingInvest = parseFloat(marketingInvestInput.value); if (productNameInput.value == null || productNameInput.value === "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You must specify a name for your product!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You must specify a name for your product!"); } else if (isNaN(designInvest)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for design investment"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for design investment"); } else if (isNaN(marketingInvest)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for marketing investment"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value for marketing investment"); } else if (this.funds.lt(designInvest + marketingInvest)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to make this large of an investment"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to make this large of an investment"); } else { var product = new Product({ name:productNameInput.value.replace(/[<>]/g, ''), //Sanitize for HTMl elements @@ -58018,29 +58029,29 @@ Corporation.prototype.displayDivisionContent = function(division, city) { }); this.funds = this.funds.minus(designInvest + marketingInvest); division.products[product.name] = product; - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); } //this.updateUIContent(); this.displayDivisionContent(division, city); return false; } }) - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }) - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, designCity, productNameInput, lineBreak1, + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, designCity, productNameInput, lineBreak1, designInvestInput, marketingInvestInput, confirmBtn, cancelBtn]); } })); } //Employee and Office Panel - industryEmployeeText = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryEmployeeText = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { id: "cmpy-mgmt-employee-p", display:"block", innerHTML: "

Office Space


" + @@ -58053,7 +58064,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { //Hire Employee button if (office.employees.length === 0) { - industryEmployeeHireButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeeHireButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button",display:"inline-block", innerText:"Hire Employee", fontSize:"13px", tooltip:"You'll need to hire some employees to get your operations started! " + @@ -58065,7 +58076,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { }); //industryEmployeeHireButton.classList.add("flashing-button"); } else { - industryEmployeeHireButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeeHireButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button",display:"inline-block", innerText:"Hire Employee", fontSize:"13px", clickListener:()=>{ @@ -58077,7 +58088,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { industryEmployeePanel.appendChild(industryEmployeeHireButton); //Autohire Employee button - industryEmployeeAutohireButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeeAutohireButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Autohire Employee", fontSize:"13px", tooltip:"Automatically hires an employee and gives him/her a random name", @@ -58089,8 +58100,8 @@ Corporation.prototype.displayDivisionContent = function(division, city) { industryEmployeePanel.appendChild(industryEmployeeAutohireButton); //Upgrade Office Size button - industryEmployeePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); - industryOfficeUpgradeSizeButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryOfficeUpgradeSizeButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Upgrade size", display:"inline-block", margin:"6px", fontSize:"13px", tooltip:"Upgrade the office's size so that it can hold more employees!", @@ -58123,91 +58134,91 @@ Corporation.prototype.displayDivisionContent = function(division, city) { var upgradeCostMax = OfficeInitialCost * mult; - var text = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var text = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Increase the size of your office space to fit additional employees!" }); - var text2 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {innerText: "Upgrade size: "}); + var text2 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {innerText: "Upgrade size: "}); - var confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class: this.funds.lt(upgradeCost) ? "a-link-button-inactive" : "a-link-button", display:"inline-block", margin:"4px", innerText:"by 3", tooltip:numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(upgradeCost).format("$0.000a"), clickListener:()=>{ if (this.funds.lt(upgradeCost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); } else { office.size += OfficeInitialSize; this.funds = this.funds.minus(upgradeCost); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); this.updateUIContent(); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var confirmBtn15 = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtn15 = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class: this.funds.lt(upgradeCost15) ? "a-link-button-inactive" : "a-link-button", display:"inline-block", margin:"4px", innerText:"by 15", tooltip:numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(upgradeCost15).format("$0.000a"), clickListener:()=>{ if (this.funds.lt(upgradeCost15)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); } else { office.size += (OfficeInitialSize * 5); this.funds = this.funds.minus(upgradeCost15); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); this.updateUIContent(); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var confirmBtnMax = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var confirmBtnMax = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:this.funds.lt(upgradeCostMax) ? "a-link-button-inactive" : "a-link-button", display:"inline-block", margin:"4px", innerText:"by MAX (" + maxNum*OfficeInitialSize + ")", tooltip:numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(upgradeCostMax).format("$0.000a"), clickListener:()=>{ if (this.funds.lt(upgradeCostMax)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to purchase this upgrade!"); } else { office.size += (OfficeInitialSize * maxNum); this.funds = this.funds.minus(upgradeCostMax); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Office space increased! It can now hold " + office.size + " employees"); this.updateUIContent(); } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", innerText:"Cancel", display:"inline-block", margin:"4px", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }) - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [text, text2, confirmBtn, confirmBtn15, confirmBtnMax, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [text, text2, confirmBtn, confirmBtn15, confirmBtnMax, cancelBtn]); return false; } }); industryEmployeePanel.appendChild(industryOfficeUpgradeSizeButton); //Throw Office Party - industryEmployeePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Throw Party", fontSize:"13px", tooltip:"Throw an office party to increase your employee's morale and happiness", clickListener:()=>{ var popupId = "cmpy-mgmt-throw-office-party-popup"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Enter the amount of money you would like to spend PER EMPLOYEE " + "on this office party" }); - var totalCostTxt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + var totalCostTxt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Throwing this party will cost a total of $0" }); var confirmBtn; - var input = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { + var input = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("input", { type:"number", margin:"5px", placeholder:"$ / employee", inputListener:()=>{ if (isNaN(input.value) || input.value < 0) { @@ -58222,49 +58233,49 @@ Corporation.prototype.displayDivisionContent = function(division, city) { if (e.keyCode === 13) {confirmBtn.click();} } }); - confirmBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + confirmBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Throw Party", clickListener:()=>{ if (isNaN(input.value) || input.value < 0) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value entered"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Invalid value entered"); } else { var totalCost = input.value * office.employees.length; if (this.funds.lt(totalCost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to throw this party!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You don't have enough company funds to throw this party!"); } else { this.funds = this.funds.minus(totalCost); var mult; for (var fooit = 0; fooit < office.employees.length; ++fooit) { mult = office.employees[fooit].throwParty(input.value); } - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You threw a party for the office! The morale and happiness " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You threw a party for the office! The morale and happiness " + "of each employee increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])((mult-1) * 100, 2) + "%."); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); } } return false; } }); - var cancelBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var cancelBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", innerText:"Cancel", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, totalCostTxt, input, confirmBtn, cancelBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createPopup"])(popupId, [txt, totalCostTxt, input, confirmBtn, cancelBtn]); } })); - industryEmployeeManagementUI = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {}); - industryEmployeeInfo = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {margin:"4px", padding:"4px"}); + industryEmployeeManagementUI = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {}); + industryEmployeeInfo = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", {margin:"4px", padding:"4px"}); if (empManualAssignmentModeActive) { //Employees manually assigned - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", margin:"4px", innerText:"Switch to Auto Mode", tooltip:"Switch to Automatic Assignment Mode, which will automatically " + @@ -58275,16 +58286,16 @@ Corporation.prototype.displayDivisionContent = function(division, city) { this.displayDivisionContent(division, city); } })); - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); - industryIndividualEmployeeInfo = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {margin:"4px", padding:"4px"}); - var selector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", { + industryIndividualEmployeeInfo = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", {margin:"4px", padding:"4px"}); + var selector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("select", { color: "white", backgroundColor:"black", margin:"4px", padding:"4px", changeListener:()=>{ var name = selector.options[selector.selectedIndex].text; for (var i = 0; i < office.employees.length; ++i) { if (office.employees[i].name === name) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryIndividualEmployeeInfo); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryIndividualEmployeeInfo); office.employees[i].createUI(industryIndividualEmployeeInfo, this); return; } @@ -58294,7 +58305,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { }); for (var i = 0; i < office.employees.length; ++i) { - selector.add(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", {text:office.employees[i].name})); + selector.add(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("option", {text:office.employees[i].name})); } selector.selectedIndex = -1; @@ -58304,7 +58315,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { industryEmployeeManagementUI.appendChild(industryIndividualEmployeeInfo); } else { //Player only manages the number of each occupation, not who gets what job - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class:"a-link-button", display:"inline-block", margin:"4px", innerText:"Switch to Manual Mode", tooltip:"Switch to Manual Assignment Mode, which allows you to " + @@ -58314,7 +58325,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { this.displayDivisionContent(division, city); } })); - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); var opCount = 0, engCount = 0, busCount = 0, mgmtCount = 0, rndCount = 0, unassignedCount = 0, @@ -58342,15 +58353,15 @@ Corporation.prototype.displayDivisionContent = function(division, city) { } //Unassigned employee count display - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { display:"inline-block", innerText:"Unassigned Employees: " + unassignedCount, })); - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); //General display of employee information (avg morale, avg energy, etc.) industryEmployeeManagementUI.appendChild(industryEmployeeInfo); - industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeManagementUI.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); var positions = [EmployeePositions.Operations, EmployeePositions.Engineer, EmployeePositions.Business, EmployeePositions.Management, @@ -58364,12 +58375,12 @@ Corporation.prototype.displayDivisionContent = function(division, city) { var counts = [opCount, engCount, busCount, mgmtCount, rndCount, trainingCount]; for (var i = 0; i < positions.length; ++i) { (function(corp, i) { - var info = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h2", { + var info = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("h2", { display:"inline-block", width:"40%", fontSize:"15px", innerText: positions[i] + "(" + counts[i] + ")", tooltipleft: descriptions[i] }); - var plusBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var plusBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class: unassignedCount > 0 ? "a-link-button" : "a-link-button-inactive", display:"inline-block", innerText:"+", clickListener:()=>{ @@ -58377,7 +58388,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { corp.displayDivisionContent(division, city); } }); - var minusBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + var minusBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { class: counts[i] > 0 ? "a-link-button" : "a-link-button-inactive", display:"inline-block", innerText:"-", clickListener:()=>{ @@ -58385,7 +58396,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) { corp.displayDivisionContent(division, city); } }); - var newline = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {}); + var newline = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {}); industryEmployeeManagementUI.appendChild(info); industryEmployeeManagementUI.appendChild(plusBtn); industryEmployeeManagementUI.appendChild(minusBtn); @@ -58400,12 +58411,12 @@ Corporation.prototype.displayDivisionContent = function(division, city) { if (warehouse instanceof Warehouse) { warehouse.createUI({industry:division, company: this}); } else { - industryWarehousePanel.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { + industryWarehousePanel.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("a", { innerText:"Purchase Warehouse ($5b)", class: "a-link-button", clickListener:()=>{ if (this.funds.lt(WarehouseInitialCost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You do not have enough funds to do this!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("You do not have enough funds to do this!"); } else { division.warehouses[currentCityUi] = new Warehouse({ loc:currentCityUi, @@ -58446,8 +58457,8 @@ Corporation.prototype.updateDivisionContent = function(division) { } - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryOverviewText); - industryOverviewText.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeChildrenFromElement"])(industryOverviewText); + industryOverviewText.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerHTML:"Industry: " + division.type + " (Corp Funds: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(this.funds.toNumber()).format("$0.000a") + ")

" + "Awareness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.awareness, 3) + "
" + "Popularity: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.popularity, 3) + "
" + @@ -58456,16 +58467,16 @@ Corporation.prototype.updateDivisionContent = function(division) { "Expenses: " + numeral_min_numeral_min__WEBPACK_IMPORTED_MODULE_10___default()(division.lastCycleExpenses.toNumber()).format("$0.000a") + " /s
" + "Profit: " + profitStr + " / s

" })); - industryOverviewText.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryOverviewText.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { marginTop:"2px", innerText:"Production Multiplier: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.prodMult, 2), tooltip:"Production gain from owning production-boosting materials " + "such as hardware, Robots, AI Cores, and Real Estate" })); - industryOverviewText.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { + industryOverviewText.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("div", { innerText:"?", class:"help-tip", clickListener:()=>{ - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Owning Hardware, Robots, AI Cores, and Real Estate " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_7__["dialogBoxCreate"])("Owning Hardware, Robots, AI Cores, and Real Estate " + "can boost your Industry's production. The effect these " + "materials have on your production varies between Industries. " + "For example, Real Estate may be very effective for some Industries, " + @@ -58477,8 +58488,8 @@ Corporation.prototype.updateDivisionContent = function(division) { "production multiplier of your entire Division."); } })); - industryOverviewText.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br")); - industryOverviewText.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryOverviewText.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br")); + industryOverviewText.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { display:"inline-block", innerText:"Scientific Research: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.sciResearch.qty, 3), tooltip:"Scientific Research increases the quality of the materials and " + @@ -58523,22 +58534,22 @@ Corporation.prototype.updateDivisionContent = function(division) { "Avg Employee Happiness: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(avgHappiness, 3) + "
" + "Avg Employee Energy: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(avgEnergy, 3); if (vechain) { //VeChain - Statistics - industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); - industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Material Production: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.getOfficeProductivity(office), 3), tooltip: "The base amount of material this office can produce. Does not include " + "production multipliers from upgrades and materials. This value is based off " + "the productivity of your Operations, Engineering, and Management employees" })); - industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); - industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText:"Product Production: " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.getOfficeProductivity(office, {forProduct:true}), 3), tooltip: "The base amount of any given Product this office can produce. Does not include " + "production multipliers from upgrades and materials. This value is based off " + "the productivity of your Operations, Engineering, and Management employees" })); - industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); - industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { + industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("br", {})); + industryEmployeeInfo.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("p", { innerText: "Business Multiplier: x" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_11__["formatNumber"])(division.getBusinessFactor(office), 3), tooltip: "The effect this office's 'Business' employees has on boosting sales" })); @@ -58552,7 +58563,7 @@ Corporation.prototype.updateDivisionContent = function(division) { } Corporation.prototype.createCityUITab = function(city, division) { - var tab = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { + var tab = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["createElement"])("button", { id:"cmpy-mgmt-city-" + city + "-tab", class:"cmpy-mgmt-city-tab", innerText:city, @@ -58578,7 +58589,7 @@ Corporation.prototype.selectCityTab = function(activeTab, city) { Corporation.prototype.clearUI = function() { //Delete everything - if (companyManagementDiv != null) {Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(companyManagementDiv.id);} + if (companyManagementDiv != null) {Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_8__["removeElementById"])(companyManagementDiv.id);} //Reset global DOM variables companyManagementDiv = null; @@ -58617,14 +58628,14 @@ Corporation.prototype.clearUI = function() { } Corporation.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Corporation", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_toJSON"])("Corporation", this); } Corporation.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Corporation, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Generic_fromJSON"])(Corporation, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Corporation = Corporation; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_9__["Reviver"].constructors.Corporation = Corporation; @@ -58772,7 +58783,7 @@ function deleteTextFile(fn, server) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NetscriptPort", function() { return NetscriptPort; }); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Settings.js */ 20); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Settings */ 20); function NetscriptPort() { @@ -58781,14 +58792,14 @@ function NetscriptPort() { NetscriptPort.prototype.write = function(data) { this.data.push(data); - if (this.data.length > _Settings_js__WEBPACK_IMPORTED_MODULE_0__["Settings"].MaxPortCapacity) { + if (this.data.length > _Settings__WEBPACK_IMPORTED_MODULE_0__["Settings"].MaxPortCapacity) { return this.data.shift(); } return null; } NetscriptPort.prototype.tryWrite = function(data) { - if (this.data.length >= _Settings_js__WEBPACK_IMPORTED_MODULE_0__["Settings"].MaxPortCapacity) { + if (this.data.length >= _Settings__WEBPACK_IMPORTED_MODULE_0__["Settings"].MaxPortCapacity) { return false; } this.data.push(data); @@ -58812,7 +58823,7 @@ NetscriptPort.prototype.peek = function() { } NetscriptPort.prototype.full = function() { - return this.data.length == _Settings_js__WEBPACK_IMPORTED_MODULE_0__["Settings"].MaxPortCapacity; + return this.data.length == _Settings__WEBPACK_IMPORTED_MODULE_0__["Settings"].MaxPortCapacity; } NetscriptPort.prototype.empty = function() { @@ -58837,25 +58848,25 @@ NetscriptPort.prototype.clear = function() { __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saveObject", function() { return saveObject; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "loadGame", function() { return loadGame; }); -/* harmony import */ var _Alias_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias.js */ 29); -/* harmony import */ var _Company_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company.js */ 10); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Fconf_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Fconf.js */ 32); -/* harmony import */ var _Gang_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Gang.js */ 34); -/* harmony import */ var _HacknetNode_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./HacknetNode.js */ 36); -/* harmony import */ var _Message_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Message.js */ 28); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Script_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Script.js */ 25); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _Settings_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Settings.js */ 20); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _StockMarket_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./StockMarket.js */ 21); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/GameOptions.js */ 53); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/JSONReviver.js */ 9); +/* harmony import */ var _Alias__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Alias */ 29); +/* harmony import */ var _Company__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Company */ 10); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Fconf__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Fconf */ 32); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./Gang */ 34); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./HacknetNode */ 36); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Message */ 28); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Script__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Script */ 25); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _Settings__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./Settings */ 20); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./StockMarket */ 21); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_GameOptions__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../utils/GameOptions */ 53); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../utils/JSONReviver */ 9); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_19__); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! decimal.js */ 23); @@ -58904,10 +58915,10 @@ function BitburnerSaveObject() { } BitburnerSaveObject.prototype.saveGame = function(db) { - this.PlayerSave = JSON.stringify(_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"]); + this.PlayerSave = JSON.stringify(_Player__WEBPACK_IMPORTED_MODULE_9__["Player"]); //Delete all logs from all running scripts - var TempAllServers = JSON.parse(JSON.stringify(_Server_js__WEBPACK_IMPORTED_MODULE_11__["AllServers"]), _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + var TempAllServers = JSON.parse(JSON.stringify(_Server__WEBPACK_IMPORTED_MODULE_11__["AllServers"]), _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); for (var ip in TempAllServers) { var server = TempAllServers[ip]; if (server == null) {continue;} @@ -58919,18 +58930,18 @@ BitburnerSaveObject.prototype.saveGame = function(db) { } this.AllServersSave = JSON.stringify(TempAllServers); - this.CompaniesSave = JSON.stringify(_Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"]); - this.FactionsSave = JSON.stringify(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["Factions"]); - this.SpecialServerIpsSave = JSON.stringify(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"]); - this.AliasesSave = JSON.stringify(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["Aliases"]); - this.GlobalAliasesSave = JSON.stringify(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"]); - this.MessagesSave = JSON.stringify(_Message_js__WEBPACK_IMPORTED_MODULE_8__["Messages"]); - this.StockMarketSave = JSON.stringify(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["StockMarket"]); - this.SettingsSave = JSON.stringify(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["Settings"]); - this.FconfSettingsSave = JSON.stringify(_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"]); - this.VersionSave = JSON.stringify(_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang()) { - this.AllGangsSave = JSON.stringify(_Gang_js__WEBPACK_IMPORTED_MODULE_6__["AllGangs"]); + this.CompaniesSave = JSON.stringify(_Company__WEBPACK_IMPORTED_MODULE_1__["Companies"]); + this.FactionsSave = JSON.stringify(_Faction__WEBPACK_IMPORTED_MODULE_4__["Factions"]); + this.SpecialServerIpsSave = JSON.stringify(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"]); + this.AliasesSave = JSON.stringify(_Alias__WEBPACK_IMPORTED_MODULE_0__["Aliases"]); + this.GlobalAliasesSave = JSON.stringify(_Alias__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"]); + this.MessagesSave = JSON.stringify(_Message__WEBPACK_IMPORTED_MODULE_8__["Messages"]); + this.StockMarketSave = JSON.stringify(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["StockMarket"]); + this.SettingsSave = JSON.stringify(_Settings__WEBPACK_IMPORTED_MODULE_12__["Settings"]); + this.FconfSettingsSave = JSON.stringify(_Fconf__WEBPACK_IMPORTED_MODULE_5__["FconfSettings"]); + this.VersionSave = JSON.stringify(_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version); + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang()) { + this.AllGangsSave = JSON.stringify(_Gang__WEBPACK_IMPORTED_MODULE_6__["AllGangs"]); } var saveString = btoa(unescape(encodeURIComponent(JSON.stringify(this)))); @@ -58951,7 +58962,7 @@ BitburnerSaveObject.prototype.saveGame = function(db) { //console.log("Saved game to LocalStorage!"); } catch(e) { if (e.code == 22) { - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].createStatusText("Save failed for localStorage! Check console(F12)"); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].createStatusText("Save failed for localStorage! Check console(F12)"); console.log("Failed to save game to localStorage because the size of the save file " + "is too large. However, the game will still be saved to IndexedDb if your browser " + "supports it. If you would like to save to localStorage as well, then " + @@ -58960,7 +58971,7 @@ BitburnerSaveObject.prototype.saveGame = function(db) { } } - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].createStatusText("Game saved!"); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].createStatusText("Game saved!"); } function loadGame(saveString) { @@ -58976,97 +58987,97 @@ function loadGame(saveString) { console.log("Loading game from IndexedDB"); } - var saveObj = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + var saveObj = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - Object(_Player_js__WEBPACK_IMPORTED_MODULE_9__["loadPlayer"])(saveObj.PlayerSave); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_11__["loadAllServers"])(saveObj.AllServersSave); - Object(_Company_js__WEBPACK_IMPORTED_MODULE_1__["loadCompanies"])(saveObj.CompaniesSave); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["loadFactions"])(saveObj.FactionsSave); - Object(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["loadSpecialServerIps"])(saveObj.SpecialServerIpsSave); + Object(_Player__WEBPACK_IMPORTED_MODULE_9__["loadPlayer"])(saveObj.PlayerSave); + Object(_Server__WEBPACK_IMPORTED_MODULE_11__["loadAllServers"])(saveObj.AllServersSave); + Object(_Company__WEBPACK_IMPORTED_MODULE_1__["loadCompanies"])(saveObj.CompaniesSave); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["loadFactions"])(saveObj.FactionsSave); + Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["loadSpecialServerIps"])(saveObj.SpecialServerIpsSave); if (saveObj.hasOwnProperty("AliasesSave")) { try { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(saveObj.AliasesSave); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(saveObj.AliasesSave); } catch(e) { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); } } else { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); } if (saveObj.hasOwnProperty("GlobalAliasesSave")) { try { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(saveObj.GlobalAliasesSave); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(saveObj.GlobalAliasesSave); } catch(e) { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); } } else { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); } if (saveObj.hasOwnProperty("MessagesSave")) { try { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["loadMessages"])(saveObj.MessagesSave); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["loadMessages"])(saveObj.MessagesSave); } catch(e) { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); } } else { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); } if (saveObj.hasOwnProperty("StockMarketSave")) { try { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(saveObj.StockMarketSave); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(saveObj.StockMarketSave); } catch(e) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); } } else { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); } if (saveObj.hasOwnProperty("SettingsSave")) { try { - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["loadSettings"])(saveObj.SettingsSave); + Object(_Settings__WEBPACK_IMPORTED_MODULE_12__["loadSettings"])(saveObj.SettingsSave); } catch(e) { console.log("ERROR: Failed to parse Settings. Re-initing default values"); - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); + Object(_Settings__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); } } else { - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); + Object(_Settings__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); } if (saveObj.hasOwnProperty("FconfSettingsSave")) { try { - Object(_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["loadFconf"])(saveObj.FconfSettingsSave); + Object(_Fconf__WEBPACK_IMPORTED_MODULE_5__["loadFconf"])(saveObj.FconfSettingsSave); } catch(e) { console.log("ERROR: Failed to parse .fconf Settings."); } } if (saveObj.hasOwnProperty("VersionSave")) { try { - var ver = JSON.parse(saveObj.VersionSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == null || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN === 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].setBitNodeNumber(1); + var ver = JSON.parse(saveObj.VersionSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == null || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN === 0) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].setBitNodeNumber(1); } if (ver.startsWith("0.27.") || ver.startsWith("0.28.")) { console.log("Evaluating changes needed for version compatibility"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].augmentations.length > 0 || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].queuedAugmentations.length > 0 || - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].sourceFiles.length > 0) { + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].augmentations.length > 0 || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].queuedAugmentations.length > 0 || + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].sourceFiles.length > 0) { //If you have already purchased an Aug...you are far enough in the game //that everything should be available - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstAugPurchased = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstTimeTraveled = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstProgramAvailable = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstAugPurchased = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstTimeTraveled = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstProgramAvailable = true; } else { - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].factions.length > 0 || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].factionInvitations.length > 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].factions.length > 0 || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].factionInvitations.length > 0) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].companyName !== "" || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].companyPosition !== "") { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].companyName !== "" || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].companyPosition !== "") { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].hacking_skill >= 25) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstScriptAvailable = true; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].hacking_skill >= 25) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstScriptAvailable = true; } } } - if (ver != _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version) { + if (ver != _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version) { createNewUpdateText(); } } catch(e) { @@ -59075,16 +59086,16 @@ function loadGame(saveString) { } else { createNewUpdateText(); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang() && saveObj.hasOwnProperty("AllGangsSave")) { + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang() && saveObj.hasOwnProperty("AllGangsSave")) { try { - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_6__["loadAllGangs"])(saveObj.AllGangsSave); + Object(_Gang__WEBPACK_IMPORTED_MODULE_6__["loadAllGangs"])(saveObj.AllGangsSave); } catch(e) { console.log("ERROR: Failed to parse AllGangsSave: " + e); } } //Re-initialize Hacknet Node Wrappers - Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_7__["createPlayerHacknetNodeWrappers"])(); + Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_7__["createPlayerHacknetNodeWrappers"])(); return true; } @@ -59106,22 +59117,22 @@ function loadImportedGame(saveObj, saveString) { try { var decodedSaveString = decodeURIComponent(escape(atob(saveString))); tempSaveObj = new BitburnerSaveObject(); - tempSaveObj = JSON.parse(decodedSaveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempSaveObj = JSON.parse(decodedSaveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - tempPlayer = JSON.parse(tempSaveObj.PlayerSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempPlayer = JSON.parse(tempSaveObj.PlayerSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); //Parse Decimal.js objects tempPlayer.money = new decimal_js__WEBPACK_IMPORTED_MODULE_20__["default"](tempPlayer.money); tempPlayer.total_money = new decimal_js__WEBPACK_IMPORTED_MODULE_20__["default"](tempPlayer.total_money); tempPlayer.lifetime_money = new decimal_js__WEBPACK_IMPORTED_MODULE_20__["default"](tempPlayer.lifetime_money); - tempAllServers = JSON.parse(tempSaveObj.AllServersSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - tempCompanies = JSON.parse(tempSaveObj.CompaniesSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - tempFactions = JSON.parse(tempSaveObj.FactionsSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - tempSpecialServerIps = JSON.parse(tempSaveObj.SpecialServerIpsSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempAllServers = JSON.parse(tempSaveObj.AllServersSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempCompanies = JSON.parse(tempSaveObj.CompaniesSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempFactions = JSON.parse(tempSaveObj.FactionsSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempSpecialServerIps = JSON.parse(tempSaveObj.SpecialServerIpsSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); if (tempSaveObj.hasOwnProperty("AliasesSave")) { try { - tempAliases = JSON.parse(tempSaveObj.AliasesSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempAliases = JSON.parse(tempSaveObj.AliasesSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); } catch(e) { console.log("Parsing Aliases save failed: " + e); tempAliases = {}; @@ -59131,7 +59142,7 @@ function loadImportedGame(saveObj, saveString) { } if (tempSaveObj.hasOwnProperty("GlobalAliases")) { try { - tempGlobalAliases = JSON.parse(tempSaveObj.AliasesSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempGlobalAliases = JSON.parse(tempSaveObj.AliasesSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); } catch(e) { console.log("Parsing Global Aliases save failed: " + e); tempGlobalAliases = {}; @@ -59141,17 +59152,17 @@ function loadImportedGame(saveObj, saveString) { } if (tempSaveObj.hasOwnProperty("MessagesSave")) { try { - tempMessages = JSON.parse(tempSaveObj.MessagesSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempMessages = JSON.parse(tempSaveObj.MessagesSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); } catch(e) { console.log("Parsing Messages save failed: " + e); - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); } } else { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); } if (saveObj.hasOwnProperty("StockMarketSave")) { try { - tempStockMarket = JSON.parse(tempSaveObj.StockMarketSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + tempStockMarket = JSON.parse(tempSaveObj.StockMarketSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); } catch(e) { console.log("Parsing StockMarket save failed: " + e); tempStockMarket = {}; @@ -59161,7 +59172,7 @@ function loadImportedGame(saveObj, saveString) { } if (tempSaveObj.hasOwnProperty("VersionSave")) { try { - var ver = JSON.parse(tempSaveObj.VersionSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + var ver = JSON.parse(tempSaveObj.VersionSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); if (ver.startsWith("0.27.") || ver.startsWith("0.28.")) { if (tempPlayer.bitNodeN == null || tempPlayer.bitNodeN == 0) { tempPlayer.bitNodeN = 1; @@ -59170,7 +59181,7 @@ function loadImportedGame(saveObj, saveString) { tempPlayer.sourceFiles = []; } } - if (ver != _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version) { + if (ver != _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version) { //createNewUpdateText(); } } catch(e) { @@ -59182,109 +59193,109 @@ function loadImportedGame(saveObj, saveString) { } if (tempPlayer.bitNodeN == 2 && tempPlayer.inGang() && tempSaveObj.hasOwnProperty("AllGangsSave")) { try { - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_6__["loadAllGangs"])(tempSaveObj.AllGangsSave); + Object(_Gang__WEBPACK_IMPORTED_MODULE_6__["loadAllGangs"])(tempSaveObj.AllGangsSave); } catch(e) { console.log("ERROR: Failed to parse AllGangsSave: " + e); } } } catch(e) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("Error importing game: " + e.toString()); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("Error importing game: " + e.toString()); return false; } //Since the save file is valid, load everything for real saveString = decodeURIComponent(escape(atob(saveString))); - saveObj = JSON.parse(saveString, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + saveObj = JSON.parse(saveString, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - Object(_Player_js__WEBPACK_IMPORTED_MODULE_9__["loadPlayer"])(saveObj.PlayerSave); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_11__["loadAllServers"])(saveObj.AllServersSave); - Object(_Company_js__WEBPACK_IMPORTED_MODULE_1__["loadCompanies"])(saveObj.CompaniesSave); - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["loadFactions"])(saveObj.FactionsSave); - Object(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["loadSpecialServerIps"])(saveObj.SpecialServerIpsSave); + Object(_Player__WEBPACK_IMPORTED_MODULE_9__["loadPlayer"])(saveObj.PlayerSave); + Object(_Server__WEBPACK_IMPORTED_MODULE_11__["loadAllServers"])(saveObj.AllServersSave); + Object(_Company__WEBPACK_IMPORTED_MODULE_1__["loadCompanies"])(saveObj.CompaniesSave); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["loadFactions"])(saveObj.FactionsSave); + Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["loadSpecialServerIps"])(saveObj.SpecialServerIpsSave); if (saveObj.hasOwnProperty("AliasesSave")) { try { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(saveObj.AliasesSave); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(saveObj.AliasesSave); } catch(e) { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); } } else { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadAliases"])(""); } if (saveObj.hasOwnProperty("GlobalAliasesSave")) { try { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(saveObj.GlobalAliasesSave); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(saveObj.GlobalAliasesSave); } catch(e) { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); } } else { - Object(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); + Object(_Alias__WEBPACK_IMPORTED_MODULE_0__["loadGlobalAliases"])(""); } if (saveObj.hasOwnProperty("MessagesSave")) { try { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["loadMessages"])(saveObj.MessagesSave); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["loadMessages"])(saveObj.MessagesSave); } catch(e) { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); } } else { - Object(_Message_js__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_8__["initMessages"])(); } if (saveObj.hasOwnProperty("StockMarketSave")) { try { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(saveObj.StockMarketSave); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(saveObj.StockMarketSave); } catch(e) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); } } else { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["loadStockMarket"])(""); } if (saveObj.hasOwnProperty("SettingsSave")) { try { - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["loadSettings"])(saveObj.SettingsSave); + Object(_Settings__WEBPACK_IMPORTED_MODULE_12__["loadSettings"])(saveObj.SettingsSave); } catch(e) { - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); + Object(_Settings__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); } } else { - Object(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); + Object(_Settings__WEBPACK_IMPORTED_MODULE_12__["initSettings"])(); } if (saveObj.hasOwnProperty("FconfSettingsSave")) { try { - Object(_Fconf_js__WEBPACK_IMPORTED_MODULE_5__["loadFconf"])(saveObj.FconfSettingsSave); + Object(_Fconf__WEBPACK_IMPORTED_MODULE_5__["loadFconf"])(saveObj.FconfSettingsSave); } catch(e) { console.log("ERROR: Failed to load .fconf settings when importing"); } } if (saveObj.hasOwnProperty("VersionSave")) { try { - var ver = JSON.parse(saveObj.VersionSave, _utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == null || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].setBitNodeNumber(1); + var ver = JSON.parse(saveObj.VersionSave, _utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"]); + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == null || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 0) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].setBitNodeNumber(1); } if (ver.startsWith("0.27.") || ver.startsWith("0.28.")) { console.log("Evaluating changes needed for version compatibility"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].augmentations.length > 0 || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].queuedAugmentations.length > 0 || - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].sourceFiles.length > 0) { + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].augmentations.length > 0 || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].queuedAugmentations.length > 0 || + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].sourceFiles.length > 0) { //If you have already purchased an Aug...you are far enough in the game //that everything should be available - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstAugPurchased = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstTimeTraveled = true; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstProgramAvailable = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstAugPurchased = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstTimeTraveled = true; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstProgramAvailable = true; } else { - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].factions.length > 0 || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].factionInvitations.length > 0) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].factions.length > 0 || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].factionInvitations.length > 0) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstFacInvRecvd = true; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].companyName !== "" || _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].companyPosition !== "") { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].companyName !== "" || _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].companyPosition !== "") { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstJobRecvd = true; } - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].hacking_skill >= 25) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].firstScriptAvailable = true; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].hacking_skill >= 25) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].firstScriptAvailable = true; } } } - if (ver != _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version) { + if (ver != _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version) { createNewUpdateText(); } } catch(e) { @@ -59293,104 +59304,104 @@ function loadImportedGame(saveObj, saveString) { } else { createNewUpdateText(); } - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang() && saveObj.hasOwnProperty("AllGangsSave")) { + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang() && saveObj.hasOwnProperty("AllGangsSave")) { try { - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_6__["loadAllGangs"])(saveObj.AllGangsSave); + Object(_Gang__WEBPACK_IMPORTED_MODULE_6__["loadAllGangs"])(saveObj.AllGangsSave); } catch(e) { console.log("ERROR: Failed to parse AllGangsSave: " + e); } } //Re-initialize Hacknet Node Wrappers - Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_7__["createPlayerHacknetNodeWrappers"])(); + Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_7__["createPlayerHacknetNodeWrappers"])(); var popupId = "import-game-restart-game-notice"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["createElement"])("p", { innerText:"Imported game! I would suggest saving the game and then reloading the page " + "to make sure everything runs smoothly" }); - var gotitBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["createElement"])("a", { + var gotitBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["createElement"])("a", { class:"a-link-button", float:"right", padding:"6px", innerText:"Got it!", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["removeElementById"])(popupId); } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, gotitBtn]); - Object(_utils_GameOptions_js__WEBPACK_IMPORTED_MODULE_16__["gameOptionsBoxClose"])(); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["createPopup"])(popupId, [txt, gotitBtn]); + Object(_utils_GameOptions__WEBPACK_IMPORTED_MODULE_16__["gameOptionsBoxClose"])(); //Re-start game console.log("Importing game"); - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].setDisplayElements(); //Sets variables for important DOM elements - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].init(); //Initialize buttons, work, etc. - _Company_js__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].init(); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].setDisplayElements(); //Sets variables for important DOM elements + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].init(); //Initialize buttons, work, etc. + _Company__WEBPACK_IMPORTED_MODULE_1__["CompanyPositions"].init(); //Calculate the number of cycles have elapsed while offline - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"]._lastUpdate = new Date().getTime(); - var lastUpdate = _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].lastUpdate; - var numCyclesOffline = Math.floor((_engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"]._lastUpdate - lastUpdate) / _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"]._idleSpeed); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"]._lastUpdate = new Date().getTime(); + var lastUpdate = _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].lastUpdate; + var numCyclesOffline = Math.floor((_engine__WEBPACK_IMPORTED_MODULE_3__["Engine"]._lastUpdate - lastUpdate) / _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"]._idleSpeed); /* Process offline progress */ - var offlineProductionFromScripts = Object(_Script_js__WEBPACK_IMPORTED_MODULE_10__["loadAllRunningScripts"])(); //This also takes care of offline production for those scripts - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].isWorking) { - console.log("work() called in load() for " + numCyclesOffline * _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"]._idleSpeed + " milliseconds"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeFaction) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workForFaction(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeCreateProgram) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].createProgramWork(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeStudyClass) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].takeClass(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeCrime) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].commitCrime(numCyclesOffline); - } else if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeCompanyPartTime) { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].workPartTime(numCyclesOffline); + var offlineProductionFromScripts = Object(_Script__WEBPACK_IMPORTED_MODULE_10__["loadAllRunningScripts"])(); //This also takes care of offline production for those scripts + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].isWorking) { + console.log("work() called in load() for " + numCyclesOffline * _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"]._idleSpeed + " milliseconds"); + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeFaction) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workForFaction(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeCreateProgram) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].createProgramWork(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeStudyClass) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].takeClass(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeCrime) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].commitCrime(numCyclesOffline); + } else if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workType == _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].WorkTypeCompanyPartTime) { + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].workPartTime(numCyclesOffline); } else { - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].work(numCyclesOffline); + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].work(numCyclesOffline); } } //Hacknet Nodes offline progress - var offlineProductionFromHacknetNodes = Object(_HacknetNode_js__WEBPACK_IMPORTED_MODULE_7__["processAllHacknetNodeEarnings"])(numCyclesOffline); + var offlineProductionFromHacknetNodes = Object(_HacknetNode__WEBPACK_IMPORTED_MODULE_7__["processAllHacknetNodeEarnings"])(numCyclesOffline); //Passive faction rep gain offline - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["processPassiveFactionRepGain"])(numCyclesOffline); + Object(_Faction__WEBPACK_IMPORTED_MODULE_4__["processPassiveFactionRepGain"])(numCyclesOffline); //Update total playtime - var time = numCyclesOffline * _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"]._idleSpeed; - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].totalPlaytime == null) {_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].totalPlaytime = 0;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastAug == null) {_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastAug = 0;} - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastBitnode == null) {_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastBitnode = 0;} - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].totalPlaytime += time; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastAug += time; - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastBitnode += time; + var time = numCyclesOffline * _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"]._idleSpeed; + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].totalPlaytime == null) {_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].totalPlaytime = 0;} + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastAug == null) {_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastAug = 0;} + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastBitnode == null) {_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastBitnode = 0;} + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].totalPlaytime += time; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastAug += time; + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].playtimeSinceLastBitnode += time; //Re-apply augmentations - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].reapplyAllAugmentations(); + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].reapplyAllAugmentations(); //Clear terminal $("#terminal tr:not(:last)").remove(); - _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].lastUpdate = _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"]._lastUpdate; - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].start(); //Run main game loop and Scripts loop - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("While you were offline, your scripts generated $" + + _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].lastUpdate = _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"]._lastUpdate; + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].start(); //Run main game loop and Scripts loop + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("While you were offline, your scripts generated $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_19__["formatNumber"])(offlineProductionFromScripts, 2) + " and your Hacknet Nodes generated $" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_19__["formatNumber"])(offlineProductionFromHacknetNodes, 2)); return true; } BitburnerSaveObject.prototype.exportGame = function() { - this.PlayerSave = JSON.stringify(_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"]); - this.AllServersSave = JSON.stringify(_Server_js__WEBPACK_IMPORTED_MODULE_11__["AllServers"]); - this.CompaniesSave = JSON.stringify(_Company_js__WEBPACK_IMPORTED_MODULE_1__["Companies"]); - this.FactionsSave = JSON.stringify(_Faction_js__WEBPACK_IMPORTED_MODULE_4__["Factions"]); - this.SpecialServerIpsSave = JSON.stringify(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"]); - this.AliasesSave = JSON.stringify(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["Aliases"]); - this.GlobalAliasesSave = JSON.stringify(_Alias_js__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"]); - this.MessagesSave = JSON.stringify(_Message_js__WEBPACK_IMPORTED_MODULE_8__["Messages"]); - this.StockMarketSave = JSON.stringify(_StockMarket_js__WEBPACK_IMPORTED_MODULE_14__["StockMarket"]); - this.SettingsSave = JSON.stringify(_Settings_js__WEBPACK_IMPORTED_MODULE_12__["Settings"]); - this.VersionSave = JSON.stringify(_Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version); - if (_Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player_js__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang()) { - this.AllGangsSave = JSON.stringify(_Gang_js__WEBPACK_IMPORTED_MODULE_6__["AllGangs"]); + this.PlayerSave = JSON.stringify(_Player__WEBPACK_IMPORTED_MODULE_9__["Player"]); + this.AllServersSave = JSON.stringify(_Server__WEBPACK_IMPORTED_MODULE_11__["AllServers"]); + this.CompaniesSave = JSON.stringify(_Company__WEBPACK_IMPORTED_MODULE_1__["Companies"]); + this.FactionsSave = JSON.stringify(_Faction__WEBPACK_IMPORTED_MODULE_4__["Factions"]); + this.SpecialServerIpsSave = JSON.stringify(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_13__["SpecialServerIps"]); + this.AliasesSave = JSON.stringify(_Alias__WEBPACK_IMPORTED_MODULE_0__["Aliases"]); + this.GlobalAliasesSave = JSON.stringify(_Alias__WEBPACK_IMPORTED_MODULE_0__["GlobalAliases"]); + this.MessagesSave = JSON.stringify(_Message__WEBPACK_IMPORTED_MODULE_8__["Messages"]); + this.StockMarketSave = JSON.stringify(_StockMarket__WEBPACK_IMPORTED_MODULE_14__["StockMarket"]); + this.SettingsSave = JSON.stringify(_Settings__WEBPACK_IMPORTED_MODULE_12__["Settings"]); + this.VersionSave = JSON.stringify(_Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].Version); + if (_Player__WEBPACK_IMPORTED_MODULE_9__["Player"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_9__["Player"].inGang()) { + this.AllGangsSave = JSON.stringify(_Gang__WEBPACK_IMPORTED_MODULE_6__["AllGangs"]); } var saveString = btoa(unescape(encodeURIComponent(JSON.stringify(this)))); @@ -59414,11 +59425,11 @@ BitburnerSaveObject.prototype.exportGame = function() { BitburnerSaveObject.prototype.importGame = function() { if (window.File && window.FileReader && window.FileList && window.Blob) { - var fileSelector = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("import-game-file-selector"); + var fileSelector = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_17__["clearEventListeners"])("import-game-file-selector"); fileSelector.addEventListener("change", openImportFileHandler, false); $("#import-game-file-selector").click(); } else { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("ERR: Your browser does not support HTML5 File API. Cannot import."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("ERR: Your browser does not support HTML5 File API. Cannot import."); } } @@ -59437,33 +59448,33 @@ BitburnerSaveObject.prototype.deleteGame = function(db) { request.onerror = function(e) { console.log("Failed to delete save from indexedDb: " + e); } - _engine_js__WEBPACK_IMPORTED_MODULE_3__["Engine"].createStatusText("Game deleted!"); + _engine__WEBPACK_IMPORTED_MODULE_3__["Engine"].createStatusText("Game deleted!"); } function createNewUpdateText() { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("New update!
" + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("New update!
" + "Please report any bugs/issues through the github repository " + "or the Bitburner subreddit (reddit.com/r/bitburner).

" + - _Constants_js__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].LatestUpdate); + _Constants__WEBPACK_IMPORTED_MODULE_2__["CONSTANTS"].LatestUpdate); } BitburnerSaveObject.prototype.toJSON = function() { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Generic_toJSON"])("BitburnerSaveObject", this); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Generic_toJSON"])("BitburnerSaveObject", this); } BitburnerSaveObject.fromJSON = function(value) { - return Object(_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Generic_fromJSON"])(BitburnerSaveObject, value.data); + return Object(_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Generic_fromJSON"])(BitburnerSaveObject, value.data); } -_utils_JSONReviver_js__WEBPACK_IMPORTED_MODULE_18__["Reviver"].constructors.BitburnerSaveObject = BitburnerSaveObject; +_utils_JSONReviver__WEBPACK_IMPORTED_MODULE_18__["Reviver"].constructors.BitburnerSaveObject = BitburnerSaveObject; //Import game function openImportFileHandler(evt) { var file = evt.target.files[0]; if (!file) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("Invalid file selected"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_15__["dialogBoxCreate"])("Invalid file selected"); return; } @@ -59685,8 +59696,8 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logBoxUpdateText", function() { return logBoxUpdateText; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logBoxOpened", function() { return logBoxOpened; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "logBoxCurrentScript", function() { return logBoxCurrentScript; }); -/* harmony import */ var _src_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/NetscriptWorker.js */ 19); -/* harmony import */ var _HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HelperFunctions.js */ 1); +/* harmony import */ var _src_NetscriptWorker__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/NetscriptWorker */ 19); +/* harmony import */ var _HelperFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./HelperFunctions */ 1); @@ -59728,15 +59739,15 @@ var logBoxOpened = false; var logBoxCurrentScript = null; function logBoxCreate(script) { logBoxCurrentScript = script; - var killScriptBtn = Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["clearEventListeners"])("log-box-kill-script"); + var killScriptBtn = Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["clearEventListeners"])("log-box-kill-script"); killScriptBtn.addEventListener("click", ()=>{ - Object(_src_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_0__["killWorkerScript"])(script, script.server); + Object(_src_NetscriptWorker__WEBPACK_IMPORTED_MODULE_0__["killWorkerScript"])(script, script.server); return false; }); document.getElementById('log-box-kill-script').style.display = "inline-block"; logBoxOpen(); document.getElementById("log-box-text-header").innerHTML = - logBoxCurrentScript.filename + " " + Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["printArray"])(logBoxCurrentScript.args) + ":

"; + logBoxCurrentScript.filename + " " + Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["printArray"])(logBoxCurrentScript.args) + ":

"; logBoxCurrentScript.logUpd = true; logBoxUpdateText(); } @@ -59769,11 +59780,11 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkIfConnectedToDarkweb", function() { return checkIfConnectedToDarkweb; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "executeDarkwebTerminalCommand", function() { return executeDarkwebTerminalCommand; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DarkWebItems", function() { return DarkWebItems; }); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Terminal.js */ 22); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Terminal */ 22); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/IPAddress */ 15); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_5__); @@ -59788,11 +59799,11 @@ __webpack_require__.r(__webpack_exports__); /* DarkWeb.js */ //Posts a "help" message if connected to DarkWeb function checkIfConnectedToDarkweb() { - if (_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_2__["SpecialServerIps"].hasOwnProperty("Darkweb Server")) { - var darkwebIp = _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_2__["SpecialServerIps"]["Darkweb Server"]; - if (!Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_4__["isValidIPAddress"])(darkwebIp)) {return;} - if (darkwebIp == _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].getCurrentServer().ip) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("You are now connected to the dark web. From the dark web you can purchase illegal items. " + + if (_SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__["SpecialServerIps"].hasOwnProperty("Darkweb Server")) { + var darkwebIp = _SpecialServerIps__WEBPACK_IMPORTED_MODULE_2__["SpecialServerIps"]["Darkweb Server"]; + if (!Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__["isValidIPAddress"])(darkwebIp)) {return;} + if (darkwebIp == _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].getCurrentServer().ip) { + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("You are now connected to the dark web. From the dark web you can purchase illegal items. " + "Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name] " + "to purchase an item"); } @@ -59807,9 +59818,9 @@ function executeDarkwebTerminalCommand(commandArray) { switch (commandArray[0]) { case "buy": if (commandArray.length != 2) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("Incorrect number of arguments. Usage: "); - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("buy -l"); - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("buy [item name]"); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Incorrect number of arguments. Usage: "); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("buy -l"); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("buy [item name]"); return; } var arg = commandArray[1]; @@ -59820,7 +59831,7 @@ function executeDarkwebTerminalCommand(commandArray) { } break; default: - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("Command not found"); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Command not found"); break; } } @@ -59828,7 +59839,7 @@ function executeDarkwebTerminalCommand(commandArray) { function listAllDarkwebItems() { for(const key in DarkWebItems) { const item = DarkWebItems[key]; - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])(item.toString()); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])(item.toString()); } } @@ -59846,26 +59857,26 @@ function buyDarkwebItem(itemName) { // return if invalid if(item === null) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("Unrecognized item: "+itemName); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Unrecognized item: "+itemName); return; } // return if the player already has it. - if(_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].hasProgram(item.program)) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])('You already have the '+item.program+' program'); + if(_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].hasProgram(item.program)) { + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])('You already have the '+item.program+' program'); return; } // return if the player doesn't have enough money - if(_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].money.lt(item.price)) { - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])("Not enough money to purchase " + item.program); + if(_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].money.lt(item.price)) { + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])("Not enough money to purchase " + item.program); return; } // buy and push - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].loseMoney(item.price); - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer().programs.push(item.program); - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_3__["post"])('You have purchased the '+item.program+' program. The new program can be found on your home computer.'); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].loseMoney(item.price); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer().programs.push(item.program); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_3__["post"])('You have purchased the '+item.program+' program. The new program can be found on your home computer.'); } function DarkWebItem(program, price, description) { @@ -59880,14 +59891,14 @@ DarkWebItem.prototype.toString = function() { } const DarkWebItems = { - BruteSSHProgram: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].BruteSSHProgram.name, 500000, "Opens up SSH Ports"), - FTPCrackProgram: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].FTPCrackProgram.name, 1500000, "Opens up FTP Ports"), - RelaySMTPProgram: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].RelaySMTPProgram.name, 5000000, "Opens up SMTP Ports"), - HTTPWormProgram: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].HTTPWormProgram.name, 30000000, "Opens up HTTP Ports"), - SQLInjectProgram: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].SQLInjectProgram.name, 250000000, "Opens up SQL Ports"), - DeepscanV1: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"), - DeepscanV2: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].DeepscanV2.name, 25000000, "Enables 'scan-analyze' with a depth up to 10"), - AutolinkProgram: new DarkWebItem(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_0__["Programs"].AutoLink.name, 1000000, "Enables direct connect via 'scan-analyze'"), + BruteSSHProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].BruteSSHProgram.name, 500000, "Opens up SSH Ports"), + FTPCrackProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].FTPCrackProgram.name, 1500000, "Opens up FTP Ports"), + RelaySMTPProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].RelaySMTPProgram.name, 5000000, "Opens up SMTP Ports"), + HTTPWormProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].HTTPWormProgram.name, 30000000, "Opens up HTTP Ports"), + SQLInjectProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].SQLInjectProgram.name, 250000000, "Opens up SQL Ports"), + DeepscanV1: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].DeepscanV1.name, 500000, "Enables 'scan-analyze' with a depth up to 5"), + DeepscanV2: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].DeepscanV2.name, 25000000, "Enables 'scan-analyze' with a depth up to 10"), + AutolinkProgram: new DarkWebItem(_CreateProgram__WEBPACK_IMPORTED_MODULE_0__["Programs"].AutoLink.name, 1000000, "Enables direct connect via 'scan-analyze'"), }; @@ -60039,7 +60050,7 @@ __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Literatures", function() { return Literatures; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "initLiterature", function() { return initLiterature; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showLiterature", function() { return showLiterature; }); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/DialogBox */ 7); /* Literature.js @@ -60056,7 +60067,7 @@ function showLiterature(fn) { if (litObj == null) {return;} var txt = "" + litObj.title + "

" + litObj.txt; - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])(txt); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_0__["dialogBoxCreate"])(txt); } let Literatures = {} @@ -60860,29 +60871,29 @@ exports.Utf8EncodeWorker = Utf8EncodeWorker; __webpack_require__.r(__webpack_exports__); /* WEBPACK VAR INJECTION */(function($) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prestigeAugmentation", function() { return prestigeAugmentation; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prestigeSourceFile", function() { return prestigeSourceFile; }); -/* harmony import */ var _ActiveScriptsUI_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI.js */ 41); -/* harmony import */ var _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations.js */ 16); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Bladeburner_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Bladeburner.js */ 26); -/* harmony import */ var _CinematicText_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CinematicText.js */ 68); -/* harmony import */ var _Company_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company.js */ 10); -/* harmony import */ var _CreateProgram_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CreateProgram.js */ 18); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Faction_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction.js */ 11); -/* harmony import */ var _Gang_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Gang.js */ 34); -/* harmony import */ var _Location_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Location.js */ 4); -/* harmony import */ var _Message_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Message.js */ 28); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NetscriptWorker.js */ 19); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SpecialServerIps.js */ 17); -/* harmony import */ var _StockMarket_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./StockMarket.js */ 21); -/* harmony import */ var _Terminal_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Terminal.js */ 22); +/* harmony import */ var _ActiveScriptsUI__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ActiveScriptsUI */ 41); +/* harmony import */ var _Augmentations__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Augmentations */ 16); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Bladeburner__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Bladeburner */ 26); +/* harmony import */ var _CinematicText__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./CinematicText */ 68); +/* harmony import */ var _Company__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Company */ 10); +/* harmony import */ var _CreateProgram__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./CreateProgram */ 18); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Faction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./Faction */ 11); +/* harmony import */ var _Gang__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./Gang */ 34); +/* harmony import */ var _Location__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Location */ 4); +/* harmony import */ var _Message__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Message */ 28); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./NetscriptWorker */ 19); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SpecialServerIps */ 17); +/* harmony import */ var _StockMarket__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./StockMarket */ 21); +/* harmony import */ var _Terminal__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./Terminal */ 22); /* harmony import */ var decimal_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! decimal.js */ 23); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -60912,115 +60923,115 @@ let BitNode8StartingMoney = 250e6; //Prestige by purchasing augmentation function prestigeAugmentation() { - Object(_BitNode_js__WEBPACK_IMPORTED_MODULE_2__["initBitNodeMultipliers"])(); + Object(_BitNode__WEBPACK_IMPORTED_MODULE_2__["initBitNodeMultipliers"])(); - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].prestigeAugmentation(); + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].prestigeAugmentation(); //Delete all Worker Scripts objects - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_13__["prestigeWorkerScripts"])(); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__["prestigeWorkerScripts"])(); - var homeComp = _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].getHomeComputer(); + var homeComp = _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].getHomeComputer(); //Delete all servers except home computer - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["prestigeAllServers"])(); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["prestigeAllServers"])(); //Delete Special Server IPs - Object(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__["prestigeSpecialServerIps"])(); //Must be done before initForeignServers() + Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__["prestigeSpecialServerIps"])(); //Must be done before initForeignServers() //Reset home computer (only the programs) and add to AllServers - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["AddToAllServers"])(homeComp); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["prestigeHomeComputer"])(homeComp); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["AddToAllServers"])(homeComp); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["prestigeHomeComputer"])(homeComp); - if (Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].Neurolink) && - _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].Neurolink].owned) { - homeComp.programs.push(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_6__["Programs"].FTPCrackProgram.name); - homeComp.programs.push(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_6__["Programs"].RelaySMTPProgram.name); + if (Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].Neurolink) && + _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].Neurolink].owned) { + homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_6__["Programs"].FTPCrackProgram.name); + homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_6__["Programs"].RelaySMTPProgram.name); } - if (Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].CashRoot) && - _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].CashRoot].owned) { - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].setMoney(new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](1000000)); - homeComp.programs.push(_CreateProgram_js__WEBPACK_IMPORTED_MODULE_6__["Programs"].BruteSSHProgram.name); + if (Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].CashRoot) && + _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].CashRoot].owned) { + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].setMoney(new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](1000000)); + homeComp.programs.push(_CreateProgram__WEBPACK_IMPORTED_MODULE_6__["Programs"].BruteSSHProgram.name); } //Re-create foreign servers - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["initForeignServers"])(); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["initForeignServers"])(); //Darkweb is purchase-able document.getElementById("location-purchase-tor").setAttribute("class", "a-link-button"); //Gain favor for Companies - for (var member in _Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"]) { - if (_Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"].hasOwnProperty(member)) { - _Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"][member].gainFavor(); + for (var member in _Company__WEBPACK_IMPORTED_MODULE_5__["Companies"]) { + if (_Company__WEBPACK_IMPORTED_MODULE_5__["Companies"].hasOwnProperty(member)) { + _Company__WEBPACK_IMPORTED_MODULE_5__["Companies"][member].gainFavor(); } } //Gain favor for factions - for (var member in _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]) { - if (_Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"].hasOwnProperty(member)) { - _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"][member].gainFavor(); + for (var member in _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]) { + if (_Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"].hasOwnProperty(member)) { + _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"][member].gainFavor(); } } //Stop a Terminal action if there is onerror - if (_engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress) { - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress = false; - _Terminal_js__WEBPACK_IMPORTED_MODULE_18__["Terminal"].finishAction(true); + if (_engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress) { + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress = false; + _Terminal__WEBPACK_IMPORTED_MODULE_18__["Terminal"].finishAction(true); } //Re-initialize things - This will update any changes - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_8__["initFactions"])(); //Factions must be initialized before augmentations - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["initAugmentations"])(); //Calls reapplyAllAugmentations() and resets Player multipliers - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].reapplyAllSourceFiles(); - Object(_Company_js__WEBPACK_IMPORTED_MODULE_5__["initCompanies"])(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_8__["initFactions"])(); //Factions must be initialized before augmentations + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["initAugmentations"])(); //Calls reapplyAllAugmentations() and resets Player multipliers + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].reapplyAllSourceFiles(); + Object(_Company__WEBPACK_IMPORTED_MODULE_5__["initCompanies"])(); //Clear terminal $("#terminal tr:not(:last)").remove(); - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_18__["postNetburnerText"])(); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_18__["postNetburnerText"])(); //Messages - Object(_Message_js__WEBPACK_IMPORTED_MODULE_11__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_11__["initMessages"])(); //Reset Stock market - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_17__["initStockMarket"])(); - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_17__["initSymbolToStockMap"])(); + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_17__["initStockMarket"])(); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_17__["initSymbolToStockMap"])(); } - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_17__["setStockMarketContentCreated"])(false); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_17__["setStockMarketContentCreated"])(false); var stockMarketList = document.getElementById("stock-market-list"); while(stockMarketList.firstChild) { stockMarketList.removeChild(stockMarketList.firstChild); } //Gang, in BitNode 2 - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN == 2 && _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].inGang()) { - var faction = _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"][_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].gang.facName]; - if (faction instanceof _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Faction"]) { - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_8__["joinFaction"])(faction); + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN == 2 && _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].inGang()) { + var faction = _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"][_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].gang.facName]; + if (faction instanceof _Faction__WEBPACK_IMPORTED_MODULE_8__["Faction"]) { + Object(_Faction__WEBPACK_IMPORTED_MODULE_8__["joinFaction"])(faction); } } //Cancel Bladeburner action - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bladeburner instanceof _Bladeburner_js__WEBPACK_IMPORTED_MODULE_3__["Bladeburner"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bladeburner.prestige(); + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bladeburner instanceof _Bladeburner__WEBPACK_IMPORTED_MODULE_3__["Bladeburner"]) { + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bladeburner.prestige(); } //BitNode 8: Ghost of Wall Street - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8) {_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].money = new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](BitNode8StartingMoney);} - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8 || _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_12__["hasWallStreetSF"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount = true; - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].hasTixApiAccess = true; + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8) {_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].money = new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](BitNode8StartingMoney);} + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_12__["hasWallStreetSF"]) { + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount = true; + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].hasTixApiAccess = true; } var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible"; - _Terminal_js__WEBPACK_IMPORTED_MODULE_18__["Terminal"].resetTerminalInput(); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadTerminalContent(); + _Terminal__WEBPACK_IMPORTED_MODULE_18__["Terminal"].resetTerminalInput(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadTerminalContent(); //Red Pill - if (Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].TheRedPill) && - _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].TheRedPill].owned) { - var WorldDaemon = _Server_js__WEBPACK_IMPORTED_MODULE_15__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__["SpecialServerNames"].WorldDaemon]]; - var DaedalusServer = _Server_js__WEBPACK_IMPORTED_MODULE_15__["AllServers"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__["SpecialServerIps"][_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__["SpecialServerNames"].DaedalusServer]]; + if (Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["augmentationExists"])(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].TheRedPill) && + _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][_Augmentations__WEBPACK_IMPORTED_MODULE_1__["AugmentationNames"].TheRedPill].owned) { + var WorldDaemon = _Server__WEBPACK_IMPORTED_MODULE_15__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__["SpecialServerNames"].WorldDaemon]]; + var DaedalusServer = _Server__WEBPACK_IMPORTED_MODULE_15__["AllServers"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__["SpecialServerIps"][_SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__["SpecialServerNames"].DaedalusServer]]; if (WorldDaemon && DaedalusServer) { WorldDaemon.serversOnNetwork.push(DaedalusServer.ip); DaedalusServer.serversOnNetwork.push(WorldDaemon.ip); @@ -61031,29 +61042,29 @@ function prestigeAugmentation() { //Prestige by destroying Bit Node and gaining a Source File function prestigeSourceFile() { - Object(_BitNode_js__WEBPACK_IMPORTED_MODULE_2__["initBitNodeMultipliers"])(); + Object(_BitNode__WEBPACK_IMPORTED_MODULE_2__["initBitNodeMultipliers"])(); - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].prestigeSourceFile(); - Object(_NetscriptWorker_js__WEBPACK_IMPORTED_MODULE_13__["prestigeWorkerScripts"])(); //Delete all Worker Scripts objects + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].prestigeSourceFile(); + Object(_NetscriptWorker__WEBPACK_IMPORTED_MODULE_13__["prestigeWorkerScripts"])(); //Delete all Worker Scripts objects - var homeComp = _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].getHomeComputer(); + var homeComp = _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].getHomeComputer(); //Delete all servers except home computer - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["prestigeAllServers"])(); //Must be done before initForeignServers() + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["prestigeAllServers"])(); //Must be done before initForeignServers() //Delete Special Server IPs - Object(_SpecialServerIps_js__WEBPACK_IMPORTED_MODULE_16__["prestigeSpecialServerIps"])(); + Object(_SpecialServerIps__WEBPACK_IMPORTED_MODULE_16__["prestigeSpecialServerIps"])(); //Reset home computer (only the programs) and add to AllServers - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["AddToAllServers"])(homeComp); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["prestigeHomeComputer"])(homeComp); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["AddToAllServers"])(homeComp); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["prestigeHomeComputer"])(homeComp); //Re-create foreign servers - Object(_Server_js__WEBPACK_IMPORTED_MODULE_15__["initForeignServers"])(); + Object(_Server__WEBPACK_IMPORTED_MODULE_15__["initForeignServers"])(); var srcFile1Owned = false; - for (var i = 0; i < _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].sourceFiles.length; ++i) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].sourceFiles[i].n == 1) { + for (var i = 0; i < _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].sourceFiles.length; ++i) { + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].sourceFiles[i].n == 1) { srcFile1Owned = true; } } @@ -61065,79 +61076,79 @@ function prestigeSourceFile() { homeComp.cpuCores = 1; //Reset favor for Companies - for (var member in _Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"]) { - if (_Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"].hasOwnProperty(member)) { - _Company_js__WEBPACK_IMPORTED_MODULE_5__["Companies"][member].favor = 0; + for (var member in _Company__WEBPACK_IMPORTED_MODULE_5__["Companies"]) { + if (_Company__WEBPACK_IMPORTED_MODULE_5__["Companies"].hasOwnProperty(member)) { + _Company__WEBPACK_IMPORTED_MODULE_5__["Companies"][member].favor = 0; } } //Reset favor for factions - for (var member in _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"]) { - if (_Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"].hasOwnProperty(member)) { - _Faction_js__WEBPACK_IMPORTED_MODULE_8__["Factions"][member].favor = 0; + for (var member in _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"]) { + if (_Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"].hasOwnProperty(member)) { + _Faction__WEBPACK_IMPORTED_MODULE_8__["Factions"][member].favor = 0; } } //Stop a Terminal action if there is one - if (_engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress) { - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress = false; - _Terminal_js__WEBPACK_IMPORTED_MODULE_18__["Terminal"].finishAction(true); + if (_engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress) { + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"]._actionInProgress = false; + _Terminal__WEBPACK_IMPORTED_MODULE_18__["Terminal"].finishAction(true); } //Delete all Augmentations - for (var name in _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"]) { - if (_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"].hasOwnProperty(name)) { - delete _Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][name]; + for (var name in _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"]) { + if (_Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"].hasOwnProperty(name)) { + delete _Augmentations__WEBPACK_IMPORTED_MODULE_1__["Augmentations"][name]; } } //Re-initialize things - This will update any changes - Object(_Faction_js__WEBPACK_IMPORTED_MODULE_8__["initFactions"])(); //Factions must be initialized before augmentations - Object(_Augmentations_js__WEBPACK_IMPORTED_MODULE_1__["initAugmentations"])(); //Calls reapplyAllAugmentations() and resets Player multipliers - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].reapplyAllSourceFiles(); - Object(_Company_js__WEBPACK_IMPORTED_MODULE_5__["initCompanies"])(); + Object(_Faction__WEBPACK_IMPORTED_MODULE_8__["initFactions"])(); //Factions must be initialized before augmentations + Object(_Augmentations__WEBPACK_IMPORTED_MODULE_1__["initAugmentations"])(); //Calls reapplyAllAugmentations() and resets Player multipliers + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].reapplyAllSourceFiles(); + Object(_Company__WEBPACK_IMPORTED_MODULE_5__["initCompanies"])(); //Clear terminal $("#terminal tr:not(:last)").remove(); - Object(_Terminal_js__WEBPACK_IMPORTED_MODULE_18__["postNetburnerText"])(); + Object(_Terminal__WEBPACK_IMPORTED_MODULE_18__["postNetburnerText"])(); //Messages - Object(_Message_js__WEBPACK_IMPORTED_MODULE_11__["initMessages"])(); + Object(_Message__WEBPACK_IMPORTED_MODULE_11__["initMessages"])(); var mainMenu = document.getElementById("mainmenu-container"); mainMenu.style.visibility = "visible"; - _Terminal_js__WEBPACK_IMPORTED_MODULE_18__["Terminal"].resetTerminalInput(); - _engine_js__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadTerminalContent(); + _Terminal__WEBPACK_IMPORTED_MODULE_18__["Terminal"].resetTerminalInput(); + _engine__WEBPACK_IMPORTED_MODULE_7__["Engine"].loadTerminalContent(); //Reinitialize Bit Node flags - Object(_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_12__["initSingularitySFFlags"])(); + Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_12__["initSingularitySFFlags"])(); //Reset Stock market, gang, and corporation - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount) { - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_17__["initStockMarket"])(); - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_17__["initSymbolToStockMap"])(); + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount) { + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_17__["initStockMarket"])(); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_17__["initSymbolToStockMap"])(); } - Object(_StockMarket_js__WEBPACK_IMPORTED_MODULE_17__["setStockMarketContentCreated"])(false); + Object(_StockMarket__WEBPACK_IMPORTED_MODULE_17__["setStockMarketContentCreated"])(false); var stockMarketList = document.getElementById("stock-market-list"); while(stockMarketList.firstChild) { stockMarketList.removeChild(stockMarketList.firstChild); } - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].gang = null; - Object(_Gang_js__WEBPACK_IMPORTED_MODULE_9__["deleteGangDisplayContent"])(); - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].corporation = null; - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bladeburner = null; + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].gang = null; + Object(_Gang__WEBPACK_IMPORTED_MODULE_9__["deleteGangDisplayContent"])(); + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].corporation = null; + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bladeburner = null; //BitNode 3: Corporatocracy - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 3) { - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].money = new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](150e9); + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 3) { + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].money = new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](150e9); homeComp.messages.push("corporation-management-handbook.lit"); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_20__["dialogBoxCreate"])("You received a copy of the Corporation Management Handbook on your home computer. " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_20__["dialogBoxCreate"])("You received a copy of the Corporation Management Handbook on your home computer. " + "Read it if you need help getting started with Corporations!"); } //BitNode 6: Bladeburner - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 6) { + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 6) { var cinematicText = ["In the middle of the 21st century, OmniTek Incorporated advanced robot evolution " + "with their Synthoids (synthetic androids), a being virtually identical to a human.", "------", @@ -61159,36 +61170,36 @@ function prestigeSourceFile() { "found and destroyed, and that many of them are blending in as normal humans in society today. " + "As a result, many nations have created Bladeburner divisions, special units that are tasked with " + "investigating and dealing with Synthoid threats."]; - Object(_CinematicText_js__WEBPACK_IMPORTED_MODULE_4__["writeCinematicText"])(cinematicText).then(function() { + Object(_CinematicText__WEBPACK_IMPORTED_MODULE_4__["writeCinematicText"])(cinematicText).then(function() { var popupId = "bladeburner-bitnode-start-nsa-notification"; - var txt = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["createElement"])("p", { + var txt = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["createElement"])("p", { innerText:"Visit the National Security Agency (NSA) to apply for their Bladeburner " + "division! You will need 100 of each combat stat before doing this." }) - var brEl = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["createElement"])("br"); - var okBtn = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["createElement"])("a", { + var brEl = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["createElement"])("br"); + var okBtn = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["createElement"])("a", { class:"a-link-button", innerText:"Got it!", padding:"8px", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["removeElementById"])(popupId); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["removeElementById"])(popupId); return false; } }); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["createPopup"])(popupId, [txt, brEl, okBtn]); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["createPopup"])(popupId, [txt, brEl, okBtn]); }).catch(function(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_21__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_21__["exceptionAlert"])(e); }) } //BitNode 8: Ghost of Wall Street - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8) {_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].money = new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](BitNode8StartingMoney);} - if (_Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8 || _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_12__["hasWallStreetSF"]) { - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount = true; - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].hasTixApiAccess = true; + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8) {_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].money = new decimal_js__WEBPACK_IMPORTED_MODULE_19__["default"](BitNode8StartingMoney);} + if (_Player__WEBPACK_IMPORTED_MODULE_14__["Player"].bitNodeN === 8 || _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_12__["hasWallStreetSF"]) { + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].hasWseAccount = true; + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].hasTixApiAccess = true; } //Gain int exp - _Player_js__WEBPACK_IMPORTED_MODULE_14__["Player"].gainIntelligenceExp(5); + _Player__WEBPACK_IMPORTED_MODULE_14__["Player"].gainIntelligenceExp(5); } @@ -63774,9 +63785,9 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/* global window, exports, define */ "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Environment", function() { return Environment; }); -/* harmony import */ var _HacknetNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HacknetNode.js */ 36); -/* harmony import */ var _NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions.js */ 30); -/* harmony import */ var _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort.js */ 44); +/* harmony import */ var _HacknetNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./HacknetNode */ 36); +/* harmony import */ var _NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptFunctions */ 30); +/* harmony import */ var _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./NetscriptPort */ 44); @@ -63790,7 +63801,7 @@ function Environment(workerScript,parent) { //this.vars = parent.vars; this.vars = Object.assign({}, parent.vars); } else { - this.vars = Object(_NetscriptFunctions_js__WEBPACK_IMPORTED_MODULE_1__["NetscriptFunctions"])(workerScript); + this.vars = Object(_NetscriptFunctions__WEBPACK_IMPORTED_MODULE_1__["NetscriptFunctions"])(workerScript); } this.parent = parent; this.stopFlag = false; @@ -63857,10 +63868,10 @@ Environment.prototype = { } //Cant assign to ports or HacknetNodes - if (res[idx[idx.length-1]] instanceof _HacknetNode_js__WEBPACK_IMPORTED_MODULE_0__["HacknetNode"]) { + if (res[idx[idx.length-1]] instanceof _HacknetNode__WEBPACK_IMPORTED_MODULE_0__["HacknetNode"]) { throw new Error("Cannot assign a Hacknet Node handle to a new value"); } - if (res[idx[idx.length-1]] instanceof _NetscriptPort_js__WEBPACK_IMPORTED_MODULE_2__["NetscriptPort"]) { + if (res[idx[idx.length-1]] instanceof _NetscriptPort__WEBPACK_IMPORTED_MODULE_2__["NetscriptPort"]) { throw new Error("Cannot assign a Netscript Port handle to a new value"); } return res[idx[idx.length-1]] = value; @@ -63886,8 +63897,8 @@ Environment.prototype = { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cinematicTextFlag", function() { return cinematicTextFlag; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "writeCinematicText", function() { return writeCinematicText; }); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_2__); @@ -63906,11 +63917,11 @@ function writeCinematicText(lines) { } //We'll reuse the 'Red Pill' content - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadCinematicTextContent(); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadCinematicTextContent(); var container = document.getElementById("cinematic-text-container"); container.style.width = "75%"; if (container == null) {throw new Error("Could not find cinematic-text-container for writeCinematicText()");} - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["removeChildrenFromElement"])(container); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["removeChildrenFromElement"])(container); for (var i = 0; i < lines.length; ++i) { if (!Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_2__["isString"])(lines[i])) { @@ -63921,7 +63932,7 @@ function writeCinematicText(lines) { return writeCinematicTextRecurse(lines).then(function() { return cinematicTextEnd(); //Puts the continue button }).catch(function(e) { - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["exceptionAlert"])(e); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["exceptionAlert"])(e); }); } @@ -63970,14 +63981,14 @@ function writeCinematicTextLetter(pElem, line, i=0) { function cinematicTextEnd() { var container = document.getElementById("cinematic-text-container"); var mainMenu = document.getElementById("mainmenu-container"); - container.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["createElement"])("br")); + container.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["createElement"])("br")); return new Promise (function(resolve, reject) { - container.appendChild(Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["createElement"])("a", { + container.appendChild(Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["createElement"])("a", { class:"a-link-button", innerText:"Continue...", clickListener:()=>{ - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_1__["removeChildrenFromElement"])(container); - _engine_js__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_1__["removeChildrenFromElement"])(container); + _engine__WEBPACK_IMPORTED_MODULE_0__["Engine"].loadTerminalContent(); mainMenu.style.visibility = "visible"; cinematicTextFlag = false; resolve(); @@ -69365,8 +69376,8 @@ module.exports = function() { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeScriptBlob", function() { return makeScriptBlob; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "executeJSScript", function() { return executeJSScript; }); -/* harmony import */ var _NetscriptJSPreamble_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NetscriptJSPreamble.js */ 130); -/* harmony import */ var _NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptEvaluator.js */ 6); +/* harmony import */ var _NetscriptJSPreamble__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./NetscriptJSPreamble */ 130); +/* harmony import */ var _NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./NetscriptEvaluator */ 6); @@ -69408,7 +69419,7 @@ async function executeJSScript(scripts = [], workerScript) { // TODO: putting await in a non-async function yields unhelpful // "SyntaxError: unexpected reserved word" with no line number information. if (!loadedModule.main) { - throw Object(_NetscriptEvaluator_js__WEBPACK_IMPORTED_MODULE_1__["makeRuntimeRejectMsg"])(script.filename + + throw Object(_NetscriptEvaluator__WEBPACK_IMPORTED_MODULE_1__["makeRuntimeRejectMsg"])(script.filename + " did not have a main function, cannot run it."); } return loadedModule.main(ns); @@ -69489,12 +69500,12 @@ function _getScriptUrls(script, scripts, seen) { __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purchaseServer", function() { return purchaseServer; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "purchaseRamForHomeComputer", function() { return purchaseRamForHomeComputer; }); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _Server_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Server.js */ 8); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/IPAddress.js */ 15); -/* harmony import */ var _utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/YesNoBox.js */ 12); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _Server__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Server */ 8); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/IPAddress */ 15); +/* harmony import */ var _utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/YesNoBox */ 12); @@ -69509,58 +69520,58 @@ __webpack_require__.r(__webpack_exports__); */ function purchaseServer(ram, cost) { //Check if player has enough money - if (_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].money.lt(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You don't have enough money to purchase this server!"); + if (_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].money.lt(cost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You don't have enough money to purchase this server!"); return; } //Maximum server limit - if (_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].purchasedServers.length >= _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].PurchasedServerLimit) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You have reached the maximum limit of " + _Constants_js__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].PurchasedServerLimit + " servers. " + + if (_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].purchasedServers.length >= _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].PurchasedServerLimit) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You have reached the maximum limit of " + _Constants__WEBPACK_IMPORTED_MODULE_0__["CONSTANTS"].PurchasedServerLimit + " servers. " + "You cannot purchase any more. You can " + "delete some of your purchased servers using the deleteServer() Netscript function in a script"); return; } - var hostname = Object(_utils_YesNoBox_js__WEBPACK_IMPORTED_MODULE_5__["yesNoTxtInpBoxGetInput"])(); + var hostname = Object(_utils_YesNoBox__WEBPACK_IMPORTED_MODULE_5__["yesNoTxtInpBoxGetInput"])(); if (hostname == "") { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You must enter a hostname for your new server!"); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You must enter a hostname for your new server!"); return; } //Create server - var newServ = new _Server_js__WEBPACK_IMPORTED_MODULE_2__["Server"]({ - ip:Object(_utils_IPAddress_js__WEBPACK_IMPORTED_MODULE_4__["createRandomIp"])(), hostname:hostname, organizationName:"", + var newServ = new _Server__WEBPACK_IMPORTED_MODULE_2__["Server"]({ + ip:Object(_utils_IPAddress__WEBPACK_IMPORTED_MODULE_4__["createRandomIp"])(), hostname:hostname, organizationName:"", isConnectedTo:false, adminRights:true, purchasedByPlayer:true, maxRam:ram }); - Object(_Server_js__WEBPACK_IMPORTED_MODULE_2__["AddToAllServers"])(newServ); + Object(_Server__WEBPACK_IMPORTED_MODULE_2__["AddToAllServers"])(newServ); //Add to Player's purchasedServers array - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].purchasedServers.push(newServ.ip); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].purchasedServers.push(newServ.ip); //Connect new server to home computer - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer(); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer(); homeComputer.serversOnNetwork.push(newServ.ip); newServ.serversOnNetwork.push(homeComputer.ip); - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].loseMoney(cost); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("Server successfully purchased with hostname " + hostname); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("Server successfully purchased with hostname " + hostname); } function purchaseRamForHomeComputer(cost) { - if (_Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].money.lt(cost)) { - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You do not have enough money to purchase additional RAM for your home computer"); + if (_Player__WEBPACK_IMPORTED_MODULE_1__["Player"].money.lt(cost)) { + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("You do not have enough money to purchase additional RAM for your home computer"); return; } - var homeComputer = _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer(); + var homeComputer = _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].getHomeComputer(); homeComputer.maxRam *= 2; - _Player_js__WEBPACK_IMPORTED_MODULE_1__["Player"].loseMoney(cost); + _Player__WEBPACK_IMPORTED_MODULE_1__["Player"].loseMoney(cost); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM."); + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_3__["dialogBoxCreate"])("Purchased additional RAM for home computer! It now has " + homeComputer.maxRam + "GB of RAM."); } @@ -69569,169 +69580,140 @@ function purchaseRamForHomeComputer(cost) { /***/ }), /* 86 */ /*!****************************!*\ - !*** ./src/FactionInfo.js ***! + !*** ./src/FactionInfo.ts ***! \****************************/ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FactionInfos", function() { return FactionInfos; }); -//Contains the "information" property for all the Factions, which is just a description -//of each faction -function FactionInfo(infoText, enemies, offerHackingMission, offerHackingWork, offerFieldWork, offerSecurityWork) { - this.infoText = infoText; - this.enemies = enemies; - this.offerHackingMission = offerHackingMission; - this.offerHackingWork = offerHackingWork; - this.offerFieldWork = offerFieldWork; - this.offerSecurityWork = offerSecurityWork; - // these are always all 1 for now. - this.augmentationPriceMult = 1; - this.augmentationRepRequirementMult = 1; +Object.defineProperty(exports, "__esModule", { value: true }); +// Contains the "information" property for all the Factions, which is just a description of each faction +class FactionInfo { + constructor(infoText, enemies, offerHackingMission, offerHackingWork, offerFieldWork, offerSecurityWork) { + this.infoText = infoText; + this.enemies = enemies; + this.offerHackingMission = offerHackingMission; + this.offerHackingWork = offerHackingWork; + this.offerFieldWork = offerFieldWork; + this.offerSecurityWork = offerSecurityWork; + // These are always all 1 for now. + this.augmentationPriceMult = 1; + this.augmentationRepRequirementMult = 1; + } } - const FactionInfos = { - //Endgame - "Illuminati": new FactionInfo("Humanity never changes. No matter how civilized society becomes, it will eventually fall back " + - "into chaos. And from this chaos, we are the Invisible hand that guides them to order. ", [], true, true, true, false), - - "Daedalus": new FactionInfo("Yesterday we obeyed kings and bent our necks to emperors. Today we kneel only to truth.", [], true, true, true, false), - - "The Covenant": new FactionInfo("Surrender yourself. Give up your empty individuality to become part of something great, something eternal. " + - "Become a slave. Submit your mind, body, and soul. Only then can you set yourself free.

" + - "Only then can you discover immortality.", [], true, true, true, false), - - //Megacorporations, each forms its own faction - "ECorp": new FactionInfo("ECorp's mission is simple: to connect the world of today with the technology of tomorrow. " + - "With our wide range of Internet-related software and commercial hardware, ECorp makes the world's " + - "information universally accessible.", [], true, true, true, true), - - "MegaCorp": new FactionInfo("MegaCorp does things that others don't. We imagine. We create. We invent. We build things that " + - "others have never even dreamed of. Our work fills the world's needs for food, water, power, and " + - "transporation on an unprecendented scale, in ways that no other company can.

" + - "In our labs and factories and on the ground with customers, MegaCorp is ushering in a new era for the world.", [], true, true, true, true), - + // Endgame + Illuminati: new FactionInfo("Humanity never changes. No matter how civilized society becomes, it will eventually" + + "fall back into chaos. And from this chaos, we are the Invisible hand that guides them to order. ", [], true, true, true, false), + Daedalus: new FactionInfo("Yesterday we obeyed kings and bent our necks to emperors. Today we kneel only to truth.", [], true, true, true, false), + "The Covenant": new FactionInfo("Surrender yourself. Give up your empty individuality to become part of something" + + "great, something eternal. Become a slave. Submit your mind, body, and soul. Only" + + "then can you set yourself free.

Only then can you discover immortality.", [], true, true, true, false), + // Megacorporations, each forms its own faction + ECorp: new FactionInfo("ECorp's mission is simple: to connect the world of today with the technology of tomorrow." + + "With our wide range of Internet-related software and commercial hardware, ECorp makes" + + "the world's information universally accessible.", [], true, true, true, true), + MegaCorp: new FactionInfo("MegaCorp does things that others don't. We imagine. We create. We invent. We build" + + "things that others have never even dreamed of. Our work fills the world's needs for" + + "food, water, power, and transporation on an unprecendented scale, in ways that no" + + "other company can.

In our labs and factories and on the ground with customers," + + "MegaCorp is ushering in a new era for the world.", [], true, true, true, true), "Bachman & Associates": new FactionInfo("Where Law and Business meet - thats where we are.

" + - "Legal Insight - Business Instinct - Experience Innovation", [], true, true, true, true), - + "Legal Insight - Business Instinct - Experience Innovation", [], true, true, true, true), "Blade Industries": new FactionInfo("Augmentation is salvation", [], true, true, true, true), - - "NWO": new FactionInfo("The human being does not truly desire freedom. It wants " + - "to be observed, understood, and judged. It wants to be given purpose and " + - "direction in its life. That is why humans created God. " + - "And that is why humans created civilization - " + - "not because of willingness, " + - "but because of a need to be incorporated into higher orders of structure and meaning.", [], true, true, true, true), - + NWO: new FactionInfo("The human being does not truly desire freedom. It wants " + + "to be observed, understood, and judged. It wants to be given purpose and " + + "direction in its life. That is why humans created God. " + + "And that is why humans created civilization - " + + "not because of willingness, " + + "but because of a need to be incorporated into higher orders of structure and meaning.", [], true, true, true, true), "Clarke Incorporated": new FactionInfo("Unlocking the power of the genome", [], true, true, true, true), - - "OmniTek Incorporated": new FactionInfo("Simply put, our mission is to design and build robots that make a difference", [], true, true, true, true), - - "Four Sigma": new FactionInfo("The scientific method is the best way to approach investing. Big strategies backed up with big data. Driven by " + - "deep learning and innovative ideas. And improved by iteration. That's Four Sigma.", [], true, true, true, true), - + "OmniTek Incorporated": new FactionInfo("Simply put, our mission is to design and build robots that make a" + + "difference", [], true, true, true, true), + "Four Sigma": new FactionInfo("The scientific method is the best way to approach investing. Big strategies backed" + + "up with big data. Driven by deep learning and innovative ideas. And improved by iteration. That's Four Sigma.", [], true, true, true, true), "KuaiGong International": new FactionInfo("Dream big. Work hard. Make history.", [], true, true, true, true), - - //Other Corporations + // Other Corporations "Fulcrum Secret Technologies": new FactionInfo("The human organism has an innate desire to worship. " + - "That is why they created gods. If there were no gods, " + - "it would be necessary to create them. And now we can.", [], true, true, false, true), - - //Hacker groups - "BitRunners": new FactionInfo("Our entire lives are controlled by bits. All of our actions, our thoughts, our personal information. "+ - "It's all transformed into bits, stored in bits, communicated through bits. It’s impossible for any person " + - "to move, to live, to operate at any level without the use of bits. " + - "And when a person moves, lives, and operates, they leave behind their bits, mere traces of seemingly " + - "meaningless fragments of information. But these bits can be reconstructed. Transformed. Used.

" + - "Those who run the bits, run the world", [], true, true, false, false), - - - "The Black Hand": new FactionInfo("The world, so afraid of strong government, now has no government. Only power - Digital power. Financial power. " + - "Technological power. " + - "And those at the top rule with an invisible hand. They built a society where the rich get richer, " + - "and everyone else suffers.

" + - "So much pain. So many lives. Their darkness must end.", [], true, true, true, false), - - "NiteSec": new FactionInfo( -" __..__
" + -" _.nITESECNIt.
" + -" .-'NITESECNITESEc.
" + -" .' NITESECNITESECn
" + -" / NITESECNITESEC;
" + -" : :NITESECNITESEC;
" + -" ; $ NITESECNITESECN
" + -" : _, ,N'ITESECNITESEC
" + -" : .+^^`, : `NITESECNIT
" + -" ) /), `-,-=,NITESECNI
" + -" / ^ ,-;|NITESECN;
" + -" / _.' '-';NITESECN
" + -" ( , ,-''`^NITE'
" + -" )` :`. .'
" + -" )-- ; `- /
" + -" \' _.-' :
" + -" ( _.-' \. \
" + -" \------. \ \
" + -" \. \ \
" + -" \ _.nIt
" + -" \ _.nITESECNi
" + -" nITESECNIT^' \
" + -" NITE^' ___ \
" + -" / .gP''''Tp. \
" + -" : d' . `b \
" + -" ; d' o `b ;
" + -" / d; `b|
" + -" /, $; @ `:
" + -" /' $$ ;
" + -" .' $$b o |
" + -" .' d$$$; :
" + -" / .d$$$$; , ;
" + -" d .dNITESEC $ |
" + -" :bp.__.gNITESEC$$ :$ ;
" + -" NITESECNITESECNIT $$b :
", [], true, true, false, false), - - //City factions, essentially governments - "Chongqing": new FactionInfo("Serve the people", ["Sector-12", "Aevum", "Volhaven"], true, true, true, true), - "Sector-12": new FactionInfo("The City of the Future", ["Chongqing", "New Tokyo", "Ishima", "Volhaven"], true, true, true, true), + "That is why they created gods. If there were no gods, " + + "it would be necessary to create them. And now we can.", [], true, true, false, true), + // Hacker groups + BitRunners: new FactionInfo("Our entire lives are controlled by bits. All of our actions, our thoughts, our" + + "personal information. It's all transformed into bits, stored in bits, communicated through bits." + + "It’s impossible for any person to move, to live, to operate at any level without the use of" + + "bits. And when a person moves, lives, and operates, they leave behind their bits, mere traces of" + + "seemingly meaningless fragments of information. But these bits can be reconstructed." + + "Transformed. Used.

Those who run the bits, run the world", [], true, true, false, false), + "The Black Hand": new FactionInfo("The world, so afraid of strong government, now has no government." + + "Only power - Digital power. Financial power. Technological power. And those at the top rule with" + + "an invisible hand. They built a society where the rich get richer, and everyone else suffers." + + "

So much pain. So many lives. Their darkness must end.", [], true, true, true, false), + NiteSec: new FactionInfo(" __..__
" + + " _.nITESECNIt.
" + + " .-'NITESECNITESEc.
" + + " .' NITESECNITESECn
" + + " / NITESECNITESEC;
" + + " : :NITESECNITESEC;
" + + " ; $ NITESECNITESECN
" + + " : _, ,N'ITESECNITESEC
" + + " : .+^^`, : `NITESECNIT
" + + " ) /), `-,-=,NITESECNI
" + + " / ^ ,-;|NITESECN;
" + + " / _.' '-';NITESECN
" + + " ( , ,-''`^NITE'
" + + " )` :`. .'
" + + " )-- ; `- /
" + + " \' _.-' :
" + + " ( _.-' \. \
" + + " \------. \ \
" + + " \. \ \
" + + " \ _.nIt
" + + " \ _.nITESECNi
" + + " nITESECNIT^' \
" + + " NITE^' ___ \
" + + " / .gP''''Tp. \
" + + " : d' . `b \
" + + " ; d' o `b ;
" + + " / d; `b|
" + + " /, $; @ `:
" + + " /' $$ ;
" + + " .' $$b o |
" + + " .' d$$$; :
" + + " / .d$$$$; , ;
" + + " d .dNITESEC $ |
" + + " :bp.__.gNITESEC$$ :$ ;
" + + " NITESECNITESECNIT $$b :
", [], true, true, false, false), + // City factions, essentially governments + Aevum: new FactionInfo("The Silicon City", ["Chongqing", "New Tokyo", "Ishima", "Volhaven"], true, true, true, true), + Chongqing: new FactionInfo("Serve the people", ["Sector-12", "Aevum", "Volhaven"], true, true, true, true), + Ishima: new FactionInfo("The East Asian Order of the Future", ["Sector-12", "Aevum", "Volhaven"], true, true, true, true), "New Tokyo": new FactionInfo("Asia's World City", ["Sector-12", "Aevum", "Volhaven"], true, true, true, true), - "Aevum": new FactionInfo("The Silicon City", ["Chongqing", "New Tokyo", "Ishima", "Volhaven"], true, true, true, true), - "Ishima": new FactionInfo("The East Asian Order of the Future", ["Sector-12", "Aevum", "Volhaven"], true, true, true, true), - "Volhaven": new FactionInfo("Benefit, Honour, and Glory", ["Chongqing", "Sector-12", "New Tokyo", "Aevum", "Ishima"], true, true, true, true), - - //Criminal Organizations/Gangs + "Sector-12": new FactionInfo("The City of the Future", ["Chongqing", "New Tokyo", "Ishima", "Volhaven"], true, true, true, true), + Volhaven: new FactionInfo("Benefit, Honour, and Glory", ["Chongqing", "Sector-12", "New Tokyo", "Aevum", "Ishima"], true, true, true, true), + // Criminal Organizations/Gangs "Speakers for the Dead": new FactionInfo("It is better to reign in hell than to serve in heaven.", [], true, true, true, true), - "The Dark Army": new FactionInfo("The World doesn't care about right or wrong. It's all about power.", [], true, true, true, false), - "The Syndicate": new FactionInfo("Honor holds you back", [], true, true, true, true), - - "Silhouette": new FactionInfo("Corporations have filled the void of power left behind by the collapse of Western government. The issue is they've become so big " + - "that you don't know who they're working for. And if you're employed at one of these corporations, you don't even know who you're working " + - "for.\n\n" + - "That's terror. Terror, fear, and corruption. All born into the system, all propagated by the system.", [], true, true, true, false), - - "Tetrads": new FactionInfo("Following the Mandate of Heaven and Carrying out the Way", [], false, false, true, true), - + Silhouette: new FactionInfo("Corporations have filled the void of power left behind by the collapse of Western" + + "government. The issue is they've become so big that you don't know who they're working for. And" + + "if you're employed at one of these corporations, you don't even know who you're working for.\n\n" + + "That's terror. Terror, fear, and corruption. All born into the system, all propagated by the" + + "system.", [], true, true, true, false), + Tetrads: new FactionInfo("Following the Mandate of Heaven and Carrying out the Way", [], false, false, true, true), "Slum Snakes": new FactionInfo("Slum Snakes rule!", [], false, false, true, true), - - //Earlygame factions - factions the player will prestige with early on that don't - //belong in other categories - "Netburners": new FactionInfo("~~//*>H4CK|\|3T 8URN3R5**>?>\\~~", [], true, true, false, false), - + // Earlygame factions - factions the player will prestige with early on that don't belong in other categories. + Netburners: new FactionInfo("~~//*>H4CK|\|3T 8URN3R5**>?>\\~~", [], true, true, false, false), "Tian Di Hui": new FactionInfo("Obey Heaven and Work Righteousness", [], true, true, false, true), - - "CyberSec": new FactionInfo("The Internet is the first thing that humanity has built that humanity doesn’t understand, " + - "the largest experiment in anarchy that we have ever had. And as the world becomes increasingly " + - "dominated by the internet, society approaches the brink of total chaos. " + - "We serve only to protect society, to protect humanity, to protect the world from its imminent collapse.", [], true, true, false, false), - - //Special Factions - "Bladeburners": new FactionInfo("It's too bad they won't live. But then again, who does?

" + - "Note that for this faction, reputation can only be gained through Bladeburner actions. Completing " + - "Bladeburner contracts/operations will increase your reputation.", [], false, false, false, false), -} - - + CyberSec: new FactionInfo("The Internet is the first thing that humanity has built that humanity doesn’t" + + "understand, the largest experiment in anarchy that we have ever had. And as the world becomes" + + "increasingly dominated by the internet, society approaches the brink of total chaos. We serve only" + + "to protect society, to protect humanity, to protect the world from its imminent collapse.", [], true, true, false, false), + // Special Factions + Bladeburners: new FactionInfo("It's too bad they won't live. But then again, who does?

Note that for this" + + "faction, reputation can only be gained through Bladeburner actions. Completing " + + "Bladeburner contracts/operations will increase your reputation.", [], false, false, false, false), +}; +exports.FactionInfos = FactionInfos; /***/ }), @@ -72910,10 +72892,10 @@ module.exports = v4; "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "factionInvitationBoxCreate", function() { return factionInvitationBoxCreate; }); -/* harmony import */ var _src_Faction_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Faction.js */ 11); -/* harmony import */ var _src_engine_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/engine.js */ 5); -/* harmony import */ var _src_Player_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Player.js */ 0); -/* harmony import */ var _HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HelperFunctions.js */ 1); +/* harmony import */ var _src_Faction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/Faction */ 11); +/* harmony import */ var _src_engine__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/engine */ 5); +/* harmony import */ var _src_Player__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Player */ 0); +/* harmony import */ var _HelperFunctions__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./HelperFunctions */ 1); @@ -72944,30 +72926,30 @@ function factionInvitationSetMessage(msg) { function factionInvitationBoxCreate(faction) { factionInvitationSetText("You have received a faction invitation from " + faction.name); faction.alreadyInvited = true; - _src_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].factionInvitations.push(faction.name); + _src_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].factionInvitations.push(faction.name); - if (_src_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _src_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Factions) { - _src_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionsContent(); + if (_src_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _src_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Factions) { + _src_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionsContent(); } - var newYesButton = Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("faction-invitation-box-yes"); + var newYesButton = Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("faction-invitation-box-yes"); newYesButton.addEventListener("click", function() { //Remove from invited factions - var i = _src_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].factionInvitations.findIndex((facName)=>{return facName === faction.name}); + var i = _src_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].factionInvitations.findIndex((facName)=>{return facName === faction.name}); if (i === -1) { console.log("ERROR: Could not find faction in Player.factionInvitations"); } else { - _src_Player_js__WEBPACK_IMPORTED_MODULE_2__["Player"].factionInvitations.splice(i, 1); + _src_Player__WEBPACK_IMPORTED_MODULE_2__["Player"].factionInvitations.splice(i, 1); } - Object(_src_Faction_js__WEBPACK_IMPORTED_MODULE_0__["joinFaction"])(faction); + Object(_src_Faction__WEBPACK_IMPORTED_MODULE_0__["joinFaction"])(faction); factionInvitationBoxClose(); - if (_src_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _src_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Factions) { - _src_engine_js__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionsContent(); + if (_src_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].currentPage === _src_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].Page.Factions) { + _src_engine__WEBPACK_IMPORTED_MODULE_1__["Engine"].loadFactionsContent(); } return false; }); - var noButton = Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("faction-invitation-box-no"); + var noButton = Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_3__["clearEventListeners"])("faction-invitation-box-no"); noButton.addEventListener("click", function() { factionInvitationBoxClose(); return false; @@ -72989,12 +72971,12 @@ function factionInvitationBoxCreate(faction) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infiltrationBoxCreate", function() { return infiltrationBoxCreate; }); -/* harmony import */ var _src_BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/BitNode.js */ 14); -/* harmony import */ var _src_Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/Constants.js */ 3); -/* harmony import */ var _src_Faction_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Faction.js */ 11); -/* harmony import */ var _src_Player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../src/Player.js */ 0); -/* harmony import */ var _DialogBox_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DialogBox.js */ 7); -/* harmony import */ var _HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./HelperFunctions.js */ 1); +/* harmony import */ var _src_BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../src/BitNode */ 14); +/* harmony import */ var _src_Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../src/Constants */ 3); +/* harmony import */ var _src_Faction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../src/Faction */ 11); +/* harmony import */ var _src_Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../src/Player */ 0); +/* harmony import */ var _DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./DialogBox */ 7); +/* harmony import */ var _HelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./HelperFunctions */ 1); /* harmony import */ var _StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./StringHelperFunctions */ 2); /* harmony import */ var _StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__); @@ -73025,20 +73007,20 @@ function infiltrationSetText(txt) { function infiltrationBoxCreate(inst) { //Gain exp var expMultiplier = 2 * inst.clearanceLevel / inst.maxClearanceLevel; - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainHackingExp(inst.hackingExpGained * expMultiplier); - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainStrengthExp(inst.strExpGained * expMultiplier); - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainDefenseExp(inst.defExpGained * expMultiplier); - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainDexterityExp(inst.dexExpGained * expMultiplier); - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainAgilityExp(inst.agiExpGained * expMultiplier); - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainCharismaExp(inst.chaExpGained * expMultiplier); - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainIntelligenceExp(inst.intExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainHackingExp(inst.hackingExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainStrengthExp(inst.strExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainDefenseExp(inst.defExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainDexterityExp(inst.dexExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainAgilityExp(inst.agiExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainCharismaExp(inst.chaExpGained * expMultiplier); + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainIntelligenceExp(inst.intExpGained * expMultiplier); var totalValue = 0; for (var i = 0; i < inst.secretsStolen.length; ++i) { totalValue += inst.secretsStolen[i]; } if (totalValue == 0) { - Object(_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You successfully escaped the facility but you did not steal " + + Object(_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You successfully escaped the facility but you did not steal " + "anything of worth when infiltrating.

" + "You gained:
" + Object(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(inst.hackingExpGained, 3) + " hacking exp
" + @@ -73049,9 +73031,9 @@ function infiltrationBoxCreate(inst) { Object(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(inst.chaExpGained, 3) + " cha exp
"); return; } - var facValue = totalValue * _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * - _src_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationRepValue * _src_BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationRep; - var moneyValue = totalValue * _src_Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationMoneyValue * _src_BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationMoney; + var facValue = totalValue * _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * + _src_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationRepValue * _src_BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationRep; + var moneyValue = totalValue * _src_Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationMoneyValue * _src_BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationMoney; infiltrationSetText("You can sell the classified documents and secrets " + "you stole from " + inst.companyName + " for $" + Object(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(moneyValue, 2) + " on the black market or you can give it " + @@ -73059,17 +73041,17 @@ function infiltrationBoxCreate(inst) { "that faction."); var selector = document.getElementById("infiltration-faction-select"); selector.innerHTML = ""; - for (var i = 0; i < _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].factions.length; ++i) { - if (_src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].factions[i] === "Bladeburners") {continue;} - selector.innerHTML += ""; + for (var i = 0; i < _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].factions.length; ++i) { + if (_src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].factions[i] === "Bladeburners") {continue;} + selector.innerHTML += ""; } - var sellButton = Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-box-sell"); + var sellButton = Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-box-sell"); setTimeout(function() { sellButton.addEventListener("click", function() { - _src_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].gainMoney(moneyValue); - Object(_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You sold the classified information you stole from " + inst.companyName + + _src_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].gainMoney(moneyValue); + Object(_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You sold the classified information you stole from " + inst.companyName + " for $" + moneyValue + " on the black market!

" + "You gained:
" + Object(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(inst.hackingExpGained, 3) + " hacking exp
" + @@ -73083,17 +73065,17 @@ function infiltrationBoxCreate(inst) { }); }, 750); - var factionButton = Object(_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-box-faction"); + var factionButton = Object(_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-box-faction"); setTimeout(function() { factionButton.addEventListener("click", function() { var facName = selector.options[selector.selectedIndex].value; - var faction = _src_Faction_js__WEBPACK_IMPORTED_MODULE_2__["Factions"][facName]; + var faction = _src_Faction__WEBPACK_IMPORTED_MODULE_2__["Factions"][facName]; if (faction == null) { - Object(_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Error finding faction. This is a bug please report to developer"); + Object(_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("Error finding faction. This is a bug please report to developer"); return false; } faction.playerReputation += facValue; - Object(_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You gave the classified information you stole from " + inst.companyName + + Object(_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You gave the classified information you stole from " + inst.companyName + " to " + facName + " and gained " + Object(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(facValue, 3) + " reputation with the faction.

" + "You gained:
" + Object(_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_6__["formatNumber"])(inst.hackingExpGained, 3) + " hacking exp
" + @@ -73122,13 +73104,13 @@ function infiltrationBoxCreate(inst) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "beginInfiltration", function() { return beginInfiltration; }); -/* harmony import */ var _BitNode_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode.js */ 14); -/* harmony import */ var _Constants_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants.js */ 3); -/* harmony import */ var _engine_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine.js */ 5); -/* harmony import */ var _Player_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player.js */ 0); -/* harmony import */ var _utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox.js */ 7); -/* harmony import */ var _utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/HelperFunctions.js */ 1); -/* harmony import */ var _utils_InfiltrationBox_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/InfiltrationBox.js */ 119); +/* harmony import */ var _BitNode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BitNode */ 14); +/* harmony import */ var _Constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Constants */ 3); +/* harmony import */ var _engine__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./engine */ 5); +/* harmony import */ var _Player__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Player */ 0); +/* harmony import */ var _utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/DialogBox */ 7); +/* harmony import */ var _utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/HelperFunctions */ 1); +/* harmony import */ var _utils_InfiltrationBox__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/InfiltrationBox */ 119); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../utils/StringHelperFunctions */ 2); /* harmony import */ var _utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__); @@ -73226,20 +73208,20 @@ function beginInfiltration(companyName, startLevel, val, maxClearance, diff) { } function endInfiltration(inst, success) { - if (success) {Object(_utils_InfiltrationBox_js__WEBPACK_IMPORTED_MODULE_6__["infiltrationBoxCreate"])(inst);} + if (success) {Object(_utils_InfiltrationBox__WEBPACK_IMPORTED_MODULE_6__["infiltrationBoxCreate"])(inst);} - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-kill"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-knockout"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-stealthknockout"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-assassinate"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-hacksecurity"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-destroysecurity"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-sneak"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-pickdoor"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-bribe"); - Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-escape"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-kill"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-knockout"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-stealthknockout"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-assassinate"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-hacksecurity"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-destroysecurity"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-sneak"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-pickdoor"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-bribe"); + Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-escape"); - _engine_js__WEBPACK_IMPORTED_MODULE_2__["Engine"].loadWorldContent(); + _engine__WEBPACK_IMPORTED_MODULE_2__["Engine"].loadWorldContent(); } function nextInfiltrationLevel(inst) { @@ -73247,16 +73229,16 @@ function nextInfiltrationLevel(inst) { updateInfiltrationLevelText(inst); //Buttons - var killButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-kill"); - var knockoutButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-knockout"); - var stealthKnockoutButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-stealthknockout"); - var assassinateButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-assassinate"); - var hackSecurityButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-hacksecurity"); - var destroySecurityButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-destroysecurity"); - var sneakButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-sneak"); - var pickdoorButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-pickdoor"); - var bribeButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-bribe"); - var escapeButton = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-escape"); + var killButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-kill"); + var knockoutButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-knockout"); + var stealthKnockoutButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-stealthknockout"); + var assassinateButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-assassinate"); + var hackSecurityButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-hacksecurity"); + var destroySecurityButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-destroysecurity"); + var sneakButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-sneak"); + var pickdoorButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-pickdoor"); + var bribeButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-bribe"); + var escapeButton = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["clearEventListeners"])("infiltration-escape"); killButton.style.display = "none"; knockoutButton.style.display = "none"; @@ -73269,7 +73251,7 @@ function nextInfiltrationLevel(inst) { bribeButton.style.display = "none"; escapeButton.style.display = "none"; - var rand = Object(_utils_HelperFunctions_js__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, 5); //This needs to change if more scenarios are added + var rand = Object(_utils_HelperFunctions__WEBPACK_IMPORTED_MODULE_5__["getRandomInt"])(0, 5); //This needs to change if more scenarios are added var scenario = null; switch (rand) { case 1: @@ -73296,16 +73278,16 @@ function nextInfiltrationLevel(inst) { writeInfiltrationStatusText("You SUCCESSFULLY killed the security bots! Unfortunately you alerted the " + "rest of the facility's security. The facility's security " + "level increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 1; + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 1; endInfiltrationLevel(inst); return false; } else { - var dmgTaken = Math.max(1, Math.round(1.5 * inst.securityLevel / _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); + var dmgTaken = Math.max(1, Math.round(1.5 * inst.securityLevel / _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); writeInfiltrationStatusText("You FAILED to kill the security bots. The bots fight back " + "and raise the alarm! You take " + dmgTaken + " damage and " + "the facility's security level increases by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { endInfiltration(inst, false); } } @@ -73317,7 +73299,7 @@ function nextInfiltrationLevel(inst) { var res = attemptInfiltrationAssassinate(inst); if (res[0]) { writeInfiltrationStatusText("You SUCCESSFULLY assassinated the security bots without being detected!"); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 1; + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 1; endInfiltrationLevel(inst); return false; } else { @@ -73341,17 +73323,17 @@ function nextInfiltrationLevel(inst) { writeInfiltrationStatusText("You SUCCESSFULLY killed the security guard! Unfortunately you alerted the " + "rest of the facility's security. The facility's security " + "level has increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 3; - ++_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].numPeopleKilled; + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 3; + ++_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].numPeopleKilled; endInfiltrationLevel(inst); return false; } else { - var dmgTaken = Math.max(1, Math.round(inst.securityLevel / _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); + var dmgTaken = Math.max(1, Math.round(inst.securityLevel / _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); writeInfiltrationStatusText("You FAILED to kill the security guard. The guard fights back " + "and raises the alarm! You take " + dmgTaken + " damage and " + "the facility's security level has increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { endInfiltration(inst, false); } } @@ -73365,8 +73347,8 @@ function nextInfiltrationLevel(inst) { var res = attemptInfiltrationAssassinate(inst); if (res[0]) { writeInfiltrationStatusText("You SUCCESSFULLY assassinated the security guard without being detected!"); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 3; - ++_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].numPeopleKilled; + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].karma -= 3; + ++_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].numPeopleKilled; endInfiltrationLevel(inst); return false; } else { @@ -73392,11 +73374,11 @@ function nextInfiltrationLevel(inst) { endInfiltrationLevel(inst); return false; } else { - var dmgTaken = Math.max(1, Math.round(inst.securityLevel / _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); + var dmgTaken = Math.max(1, Math.round(inst.securityLevel / _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); writeInfiltrationStatusText("You FAILED to knockout the security guard. The guard " + "raises the alarm and fights back! You take " + dmgTaken + " damage and " + "the facility's security level increases by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { endInfiltration(inst, false); } } @@ -73413,11 +73395,11 @@ function nextInfiltrationLevel(inst) { endInfiltrationLevel(inst); return false; } else { - var dmgTaken = Math.max(1, Math.round(inst.securityLevel / _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); + var dmgTaken = Math.max(1, Math.round(inst.securityLevel / _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense)); writeInfiltrationStatusText("You FAILED to stealthily knockout the security guard. The guard " + "raises the alarm and fights back! You take " + dmgTaken + " damage and " + "the facility's security level increases by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(dmgTaken)) { endInfiltration(inst, false); } } @@ -73490,8 +73472,8 @@ function nextInfiltrationLevel(inst) { }); bribeButton.addEventListener("click", function() { - var bribeAmt = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationBribeBaseAmount * inst.clearanceLevel; - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].money.lt(bribeAmt)) { + var bribeAmt = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationBribeBaseAmount * inst.clearanceLevel; + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].money.lt(bribeAmt)) { writeInfiltrationStatusText("You do not have enough money to bribe the guard. " + "You need $" + bribeAmt); return false; @@ -73500,7 +73482,7 @@ function nextInfiltrationLevel(inst) { if (res[0]) { writeInfiltrationStatusText("You SUCCESSFULLY bribed a guard to let you through " + "to the next clearance level for $" + bribeAmt); - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].loseMoney(bribeAmt); + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].loseMoney(bribeAmt); endInfiltrationLevel(inst); return false; } else { @@ -73523,7 +73505,7 @@ function nextInfiltrationLevel(inst) { } else { writeInfiltrationStatusText("You FAILED to escape from the facility. You took 1 damage. The facility's " + "security level increased by " + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])((res[1]*100)-100, 2).toString() + "%"); - if (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(1)) { + if (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].takeDamage(1)) { endInfiltration(inst, false); } } @@ -73543,12 +73525,12 @@ function endInfiltrationLevel(inst) { //Check if you gained any secrets if (inst.clearanceLevel % 5 == 0) { var baseSecretValue = inst.baseValue * inst.clearanceLevel / 2; - var secretValue = baseSecretValue * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * - _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationRepValue * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationRep; - var secretMoneyValue = baseSecretValue * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationMoneyValue * - _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationMoney; + var secretValue = baseSecretValue * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * + _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationRepValue * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationRep; + var secretMoneyValue = baseSecretValue * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationMoneyValue * + _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationMoney; inst.secretsStolen.push(baseSecretValue); - Object(_utils_DialogBox_js__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You found and stole a set of classified documents from the company. " + + Object(_utils_DialogBox__WEBPACK_IMPORTED_MODULE_4__["dialogBoxCreate"])("You found and stole a set of classified documents from the company. " + "These classified secrets could probably be sold for money ($" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])(secretMoneyValue, 2) + "), or they " + "could be given to factions for reputation (" + Object(_utils_StringHelperFunctions__WEBPACK_IMPORTED_MODULE_7__["formatNumber"])(secretValue, 3) + " rep)"); @@ -73581,10 +73563,10 @@ function updateInfiltrationLevelText(inst) { var totalValue = 0; var totalMoneyValue = 0; for (var i = 0; i < inst.secretsStolen.length; ++i) { - totalValue += (inst.secretsStolen[i] * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * - _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationRepValue * _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationRep); - totalMoneyValue += inst.secretsStolen[i] * _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationMoneyValue * - _BitNode_js__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationMoney; + totalValue += (inst.secretsStolen[i] * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].faction_rep_mult * + _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationRepValue * _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationRep); + totalMoneyValue += inst.secretsStolen[i] * _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].InfiltrationMoneyValue * + _BitNode__WEBPACK_IMPORTED_MODULE_0__["BitNodeMultipliers"].InfiltrationMoney; } var expMultiplier = 2 * inst.clearanceLevel / inst.maxClearanceLevel; @@ -73721,16 +73703,16 @@ function updateInfiltrationButtons(inst, scenario) { } } -let intWgt = _Constants_js__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].IntelligenceInfiltrationWeight; +let intWgt = _Constants__WEBPACK_IMPORTED_MODULE_1__["CONSTANTS"].IntelligenceInfiltrationWeight; //Kill //Success: 5%, Failure 10%, -Karma function attemptInfiltrationKill(inst) { var chance = getInfiltrationKillChance(inst); - inst.gainStrengthExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; - inst.gainDefenseExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense_exp_mult; - inst.gainDexterityExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; - inst.gainAgilityExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainStrengthExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; + inst.gainDefenseExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; if (Math.random() <= chance) { inst.securityLevel *= 1.05; return [true, 1.05]; @@ -73743,9 +73725,9 @@ function attemptInfiltrationKill(inst) { function getInfiltrationKillChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility) / (1.45 * lvl)); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility) / (1.45 * lvl)); } @@ -73753,10 +73735,10 @@ function getInfiltrationKillChance(inst) { //Success: 3%, Failure: 10% function attemptInfiltrationKnockout(inst) { var chance = getInfiltrationKnockoutChance(inst); - inst.gainStrengthExp(inst.securityLevel / 70) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; - inst.gainDefenseExp(inst.securityLevel / 70) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense_exp_mult; - inst.gainDexterityExp(inst.securityLevel / 70) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; - inst.gainAgilityExp(inst.securityLevel / 70) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainStrengthExp(inst.securityLevel / 70) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; + inst.gainDefenseExp(inst.securityLevel / 70) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 70) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 70) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; if (Math.random() <= chance) { inst.securityLevel *= 1.03; return [true, 1.03]; @@ -73769,18 +73751,18 @@ function attemptInfiltrationKnockout(inst) { function getInfiltrationKnockoutChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility) / (1.7 * lvl)); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility) / (1.7 * lvl)); } //Stealth knockout //Success: 0%, Failure: 10% function attemptInfiltrationStealthKnockout(inst) { var chance = getInfiltrationStealthKnockoutChance(inst); - inst.gainStrengthExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; - inst.gainDexterityExp(inst.securityLevel / 60) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; - inst.gainAgilityExp(inst.securityLevel / 60) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainStrengthExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 60) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 60) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; if (Math.random() <= chance) { return [true, 1]; } else { @@ -73792,19 +73774,19 @@ function attemptInfiltrationStealthKnockout(inst) { function getInfiltrationStealthKnockoutChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (0.55 * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + - 2 * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - 2 * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + - intWgt * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / (3 * lvl)); + (0.55 * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + + 2 * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + 2 * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + + intWgt * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / (3 * lvl)); } //Assassination //Success: 0%, Failure: 5%, -Karma function attemptInfiltrationAssassinate(inst) { var chance = getInfiltrationAssassinateChance(inst); - inst.gainStrengthExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; - inst.gainDexterityExp(inst.securityLevel / 55) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; - inst.gainAgilityExp(inst.securityLevel / 55) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainStrengthExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 55) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 55) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; if (Math.random() <= chance) { return [true, 1]; } else { @@ -73816,9 +73798,9 @@ function attemptInfiltrationAssassinate(inst) { function getInfiltrationAssassinateChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - 0.5 * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + - intWgt * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / (2 * lvl)); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + 0.5 * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + + intWgt * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / (2 * lvl)); } @@ -73826,10 +73808,10 @@ function getInfiltrationAssassinateChance(inst) { //Success: 5%, Failure: 10% function attemptInfiltrationDestroySecurity(inst) { var chance = getInfiltrationDestroySecurityChance(inst); - inst.gainStrengthExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; - inst.gainDefenseExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].defense_exp_mult; - inst.gainDexterityExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; - inst.gainAgilityExp(inst.securityLevel / 75) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainStrengthExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength_exp_mult; + inst.gainDefenseExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].defense_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 75) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; if (Math.random() <= chance) { inst.securityLevel *= 1.05; return [true, 1.05]; @@ -73843,9 +73825,9 @@ function attemptInfiltrationDestroySecurity(inst) { function getInfiltrationDestroySecurityChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility) / (2 * lvl)); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].strength + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility) / (2 * lvl)); } @@ -73853,7 +73835,7 @@ function getInfiltrationDestroySecurityChance(inst) { //Success: 3%, Failure: 5% function attemptInfiltrationHack(inst) { var chance = getInfiltrationHackChance(inst); - inst.gainHackingExp(inst.securityLevel / 30) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_exp_mult; + inst.gainHackingExp(inst.securityLevel / 30) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_exp_mult; inst.gainIntelligenceExp(inst.securityLevel / 680); if (Math.random() <= chance) { inst.securityLevel *= 1.03; @@ -73868,15 +73850,15 @@ function attemptInfiltrationHack(inst) { function getInfiltrationHackChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill + - (intWgt * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence)) / lvl); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].hacking_skill + + (intWgt * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence)) / lvl); } //Sneak past security //Success: 0%, Failure: 8% function attemptInfiltrationSneak(inst) { var chance = getInfiltrationSneakChance(inst); - inst.gainAgilityExp(inst.securityLevel / 30) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 30) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; if (Math.random() <= chance) { return [true, 1]; } else { @@ -73888,16 +73870,16 @@ function attemptInfiltrationSneak(inst) { function getInfiltrationSneakChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + - 0.5 * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - intWgt * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / (2 * lvl)); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + + 0.5 * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + intWgt * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / (2 * lvl)); } //Pick locked door //Success: 1%, Failure: 3% function attemptInfiltrationPickLockedDoor(inst) { var chance = getInfiltrationPickLockedDoorChance(inst); - inst.gainDexterityExp(inst.securityLevel / 25) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 25) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; if (Math.random() <= chance) { inst.securityLevel *= 1.01; return [true, 1.01]; @@ -73910,15 +73892,15 @@ function attemptInfiltrationPickLockedDoor(inst) { function getInfiltrationPickLockedDoorChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - intWgt * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / lvl); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + intWgt * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / lvl); } //Bribe //Success: 0%, Failure: 15%, function attemptInfiltrationBribe(inst) { var chance = getInfiltrationBribeChance(inst); - inst.gainCharismaExp(inst.securityLevel / 8) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].charisma_exp_mult; + inst.gainCharismaExp(inst.securityLevel / 8) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].charisma_exp_mult; if (Math.random() <= chance) { return [true, 1]; } else { @@ -73930,15 +73912,15 @@ function attemptInfiltrationBribe(inst) { function getInfiltrationBribeChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (_Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].charisma) / lvl); + (_Player__WEBPACK_IMPORTED_MODULE_3__["Player"].charisma) / lvl); } //Escape //Failure: 5% function attemptInfiltrationEscape(inst) { var chance = getInfiltrationEscapeChance(inst); - inst.gainAgilityExp(inst.securityLevel / 30) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; - inst.gainDexterityExp(inst.securityLevel / 30) * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; + inst.gainAgilityExp(inst.securityLevel / 30) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility_exp_mult; + inst.gainDexterityExp(inst.securityLevel / 30) * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity_exp_mult; if (Math.random() <= chance) { return [true, 1]; } else { @@ -73950,9 +73932,9 @@ function attemptInfiltrationEscape(inst) { function getInfiltrationEscapeChance(inst) { var lvl = inst.securityLevel; return Math.min(0.95, - (2 * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + - _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + - intWgt * _Player_js__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / lvl); + (2 * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].agility + + _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].dexterity + + intWgt * _Player__WEBPACK_IMPORTED_MODULE_3__["Player"].intelligence) / lvl); } diff --git a/src/BitNode.js b/src/BitNode.js index 57b2d30aa..cc6281e58 100644 --- a/src/BitNode.js +++ b/src/BitNode.js @@ -92,9 +92,9 @@ function initBitNodes() { "in the game.

" + "In addition, this Source-File will unlock the getBitNodeMultipliers() Netscript function, " + "and will also raise all of your hacking-related multipliers by:

" + - "Level 1: 4%
" + - "Level 2: 6%
" + - "Level 3: 7%"); + "Level 1: 8%
" + + "Level 2: 12%
" + + "Level 3: 14%"); BitNodes["BitNode6"] = new BitNode(6, "Bladeburners", "Like Tears in Rain", "In the middle of the 21st century, OmniTek Incorporated began designing and manufacturing advanced synthetic " + "androids, or Synthoids for short. They achieved a major technological breakthrough in the sixth generation " + @@ -123,7 +123,7 @@ function initBitNodes() { "and more intelligent than the humans that had created them.

" + "In this BitNode you will be able to access the Bladeburner API, which allows you to access Bladeburner " + "functionality through Netscript. Furthermore:

" + - "The rank you gain from Bladeburner contracts/operations is reduced by 50%
" + + "The rank you gain from Bladeburner contracts/operations is reduced by 40%
" + "Bladeburner skills cost twice as many skill points
" + "Augmentations are 3x more expensive
" + "Hacking and Hacknet Nodes will be significantly less profitable
" + @@ -152,7 +152,7 @@ function initBitNodes() { "Level 2: Ability to short stocks in other BitNodes
" + "Level 3: Ability to use limit/stop orders in other BitNodes

" + "This Source-File also increases your hacking growth multipliers by: " + - "
Level 1: 8%
Level 2: 12%
Level 3: 14%"); + "
Level 1: 12%
Level 2: 18%
Level 3: 21%"); BitNodes["BitNode9"] = new BitNode(9, "Do Androids Dream?", "COMING SOON"); BitNodes["BitNode10"] = new BitNode(10, "MegaCorp", "COMING SOON"); //Not sure yet BitNodes["BitNode11"] = new BitNode(11, "The Big Crash", "Okay. Sell it all.", @@ -182,7 +182,8 @@ function initBitNodes() { "To iterate is human, to recurse divine.

" + "Every time this BitNode is destroyed, it becomes slightly harder. Destroying this BitNode will give your Souce-File 12, or " + "if you already have this Source-File it will upgrade its level. There is no maximum level for Source-File 12. Each level " + - "of Source-File 12 will increase all of your multipliers by 1%."); + "of Source-File 12 will increase all of your multipliers by 1%. This effect is additive with itself, NOT multiplicative. In other words, " + + "level N of this Source-File will increase all of your multipliers by N%"); //Books: Frontera, Shiner BitNodes["BitNode13"] = new BitNode(13, "fOS", "COMING SOON"); //Unlocks the new game mode and the rest of the BitNodes BitNodes["BitNode14"] = new BitNode(14, "", "COMING SOON"); @@ -310,7 +311,7 @@ function initBitNodeMultipliers() { BitNodeMultipliers.HackExpGain = 0.25; break; case 7: //Bladeburner 2079 - BitNodeMultipliers.BladeburnerRank = 0.5; + BitNodeMultipliers.BladeburnerRank = 0.6; BitNodeMultipliers.BladeburnerSkillCost = 2; BitNodeMultipliers.AugmentationMoneyCost = 3; BitNodeMultipliers.HackingLevelMultiplier = 0.5; diff --git a/src/Bladeburner.js b/src/Bladeburner.js index 112f9ce52..3e199bcf2 100644 --- a/src/Bladeburner.js +++ b/src/Bladeburner.js @@ -60,7 +60,7 @@ var OperationSuccessesPerLevel = 2.5; //How many successes you need to level up var RanksPerSkillPoint = 4; //How many ranks needed to get 1 Skill Point -var ContractBaseMoneyGain = 10e3; //Base Money Gained per contract +var ContractBaseMoneyGain = 40e3; //Base Money Gained per contract //DOM related variables var ActiveActionCssClass = "bladeburner-active-action"; diff --git a/src/Constants.js b/src/Constants.js index 0ee124da6..2d5413994 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -490,6 +490,14 @@ let CONSTANTS = { LatestUpdate: "v0.39.1
" + + "* Bladeburner Rank gain in BN-7 is now reduced by 40% instead of 50%
" + + "* Quadrupled the amount of money gained from Bladeburner contracts
" + + "* Doubled the effects of Source-File 5. Now gives 8%, 12%, and 14% increase to all hacking multipliers " + + "at levels 1, 2, and 3, respectively (increased from 4%/6%, 7%)
" + + "* Increased the effect of Source-File 8. It now gives a 12%, 18% and 21% to your hacking growth multiplier " + + "at levels 1, 2, and 3, respectively (increased from 8%, 12%, 14%)
" + + "* The effect of Source-File 12 is now additive with itself, rather than multiplicative. This means " + + "that level N of Source-File 12 now increases all multipliers by N%
" + "* The setting to suppress the confirmation box when purchasing Augmentations was moved into the main Options menu (by Github user hydroflame)
" diff --git a/src/SourceFile.js b/src/SourceFile.js index 7e866ce9f..4679fdc61 100644 --- a/src/SourceFile.js +++ b/src/SourceFile.js @@ -43,9 +43,9 @@ function initSourceFiles() { "know when you gain experience and how much). Higher Intelligence levels will boost your production " + "for many actions in the game. In addition, this Source-File will unlock the getBitNodeMultipliers() " + "Netscript function, and will raise all of your hacking-related multipliers by:

" + - "Level 1: 4%
" + - "Level 2: 6%
" + - "Level 3: 7%"); + "Level 1: 8%
" + + "Level 2: 12%
" + + "Level 3: 14%"); SourceFiles["SourceFile6"] = new SourceFile(6, "This Source-File allows you to access the NSA's Bladeburner Division in other " + "BitNodes. In addition, this Source-File will raise the experience gain rate of all your combat stats by:

" + "Level 1: 8%
" + @@ -61,7 +61,7 @@ function initSourceFiles() { "Level 2: Ability to short stocks in other BitNodes
" + "Level 3: Ability to use limit/stop orders in other BitNodes

" + "This Source-File also increases your hacking growth multipliers by: " + - "
Level 1: 8%
Level 2: 12%
Level 3: 14%"); + "
Level 1: 12%
Level 2: 18%
Level 3: 21%"); SourceFiles["SourceFile9"] = new SourceFile(9); SourceFiles["SourceFile10"] = new SourceFile(10); SourceFiles["SourceFile11"] = new SourceFile(11, "This Source-File makes it so that company favor increases BOTH the player's salary and reputation gain rate " + @@ -70,7 +70,8 @@ function initSourceFiles() { "Level 1: 24%
" + "Level 2: 36%
" + "Level 3: 42%
"); - SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File increases all your multipliers by 1% per level"); + SourceFiles["SourceFile12"] = new SourceFile(12, "This Source-File increases all your multipliers by 1% per level. This effect is additive with itself, " + + "NOT multiplicative. In other words, level N of this Source-File will increase all of your multipliers by N%"); } function PlayerOwnedSourceFile(number, level) { @@ -147,7 +148,7 @@ function applySourceFile(srcFile) { case 5: //Artificial Intelligence var mult = 0; for (var i = 0; i < srcFile.lvl; ++i) { - mult += (4 / (Math.pow(2, i))); + mult += (8 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); Player.hacking_chance_mult *= incMult; @@ -182,7 +183,7 @@ function applySourceFile(srcFile) { case 8: //Ghost of Wall Street var mult = 0; for (var i = 0; i < srcFile.lvl; ++i) { - mult += (8 / (Math.pow(2, i))); + mult += (12 / (Math.pow(2, i))); } var incMult = 1 + (mult / 100); Player.hacking_grow_mult *= incMult; @@ -197,8 +198,8 @@ function applySourceFile(srcFile) { Player.company_rep_mult *= incMult; break; case 12: //The testing ground - const inc = Math.pow(1.01, srcFile.lvl); - const dec = Math.pow(0.99, srcFile.lvl); + const inc = 1 + (srcFile.level/100); + const dec = 1 - (srcFile.level/100); Player.hacking_chance_mult *= inc; Player.hacking_speed_mult *= inc;