mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
Refactored Server() to take old init args in constructor. Removed Server.init(). Faction reputation is now exponential. Increased infiltration exp gains. DOM now loads before scripts
This commit is contained in:
parent
c62639099a
commit
4a99c04772
130
index.html
130
index.html
@ -1,6 +1,6 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Bitburner</title>
|
<title>Bitburner</title>
|
||||||
<link rel="stylesheet" type="text/css" href="css/styles.css" />
|
<link rel="stylesheet" type="text/css" href="css/styles.css" />
|
||||||
@ -11,66 +11,6 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="css/interactivetutorial.css" />
|
<link rel="stylesheet" type="text/css" href="css/interactivetutorial.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/loader.css" />
|
<link rel="stylesheet" type="text/css" href="css/loader.css" />
|
||||||
|
|
||||||
<!--jQuery library-->
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Utils -->
|
|
||||||
<script src="utils/IPAddress.js"></script>
|
|
||||||
<script src="utils/JSONReviver.js"></script>
|
|
||||||
<script src="utils/StringHelperFunctions.js"></script>
|
|
||||||
<script src="utils/HelperFunctions.js"></script>
|
|
||||||
<script src="utils/DialogBox.js"></script>
|
|
||||||
<script src="utils/PurchaseServerBox.js"></script>
|
|
||||||
<script src="utils/FactionInvitationBox.js"></script>
|
|
||||||
<script src="utils/PurchaseAugmentationBox.js"></script>
|
|
||||||
<script src="utils/TravelBox.js"></script>
|
|
||||||
<script src="utils/PurchaseRamForHomeBox.js"></script>
|
|
||||||
<script src="utils/GameOptions.js"></script>
|
|
||||||
<script src="utils/LogBox.js"></script>
|
|
||||||
<script src="utils/InfiltrationBox.js"></script>
|
|
||||||
<script src="utils/decimal.js"></script>
|
|
||||||
|
|
||||||
<!-- Netscript -->
|
|
||||||
<script src="src/NetscriptWorker.js"></script>
|
|
||||||
<script src="src/NetscriptEvaluator.js"></script>
|
|
||||||
<script src="src/NetscriptEnvironment.js"></script>
|
|
||||||
<script src="src/NetscriptFunctions.js"></script>
|
|
||||||
<script src="utils/acorn.js"></script>
|
|
||||||
|
|
||||||
<!-- Main game files -->
|
|
||||||
<script src="src/Constants.js"></script>
|
|
||||||
<script src="src/HelpText.js"></script>
|
|
||||||
<script src="src/SpecialServerIps.js"></script>
|
|
||||||
<script src="src/Location.js"></script>
|
|
||||||
<script src="src/Script.js"></script>
|
|
||||||
<script src="src/Server.js"></script>
|
|
||||||
<script src="src/Player.js"></script>
|
|
||||||
<script src="src/Faction.js"></script>
|
|
||||||
<script src="src/FactionInfo.js"></script>
|
|
||||||
<script src="src/Company.js"></script>
|
|
||||||
<script src="src/CompanyJobApplication.js"></script>
|
|
||||||
<script src="src/Terminal.js"></script>
|
|
||||||
<script src="src/ServerPurchases.js"></script>
|
|
||||||
<script src="src/CreateProgram.js"></script>
|
|
||||||
<script src="src/Augmentations.js"></script>
|
|
||||||
<script src="src/Perk.js"></script>
|
|
||||||
<script src="src/HacknetNode.js"></script>
|
|
||||||
<script src="src/Crimes.js"></script>
|
|
||||||
<script src="src/Prestige.js"></script>
|
|
||||||
<script src="src/SaveObject.js"></script>
|
|
||||||
<script src="src/DarkWeb.js"></script>
|
|
||||||
<script src="src/InteractiveTutorial.js"></script>
|
|
||||||
<script src="src/Alias.js"></script>
|
|
||||||
<script src="src/Message.js"></script>
|
|
||||||
<script src="src/ActiveScriptsUI.js"></script>
|
|
||||||
<script src="src/Infiltration.js"></script>
|
|
||||||
<script src="src/StockMarket.js"></script>
|
|
||||||
<script src="src/RedPill.js"></script>
|
|
||||||
<script src="src/BitNode.js"></script>
|
|
||||||
<script src="src/Settings.js"></script>
|
|
||||||
|
|
||||||
<script src="src/engine.js"></script>
|
|
||||||
|
|
||||||
<!-- Google Analytics -->
|
<!-- Google Analytics -->
|
||||||
<script>
|
<script>
|
||||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||||
@ -82,8 +22,8 @@
|
|||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="entire-game-container" style="visibility:hidden;">
|
<div id="entire-game-container" style="visibility:hidden;">
|
||||||
<div id="mainmenu-container">
|
<div id="mainmenu-container">
|
||||||
<!-- Main menu -->
|
<!-- Main menu -->
|
||||||
@ -627,7 +567,8 @@
|
|||||||
|
|
||||||
<!-- Tutorial content -->
|
<!-- Tutorial content -->
|
||||||
<div id="tutorial-container" class="generic-menupage-container">
|
<div id="tutorial-container" class="generic-menupage-container">
|
||||||
<a id="tutorial-getting-started-link" class="a-link-button"> Getting Started </a>
|
<a id="tutorial-getting-started-link" class="a-link-button"
|
||||||
|
href="http://bitburner.wikia.com/wiki/Chapt3rs_Guide_to_Getting_Started_with_Bitburner" target="_blank"> Getting Started </a>
|
||||||
<a id="tutorial-networking-link" class="a-link-button"> Servers & Networking </a>
|
<a id="tutorial-networking-link" class="a-link-button"> Servers & Networking </a>
|
||||||
<a id="tutorial-hacking-link" class="a-link-button"> Hacking </a>
|
<a id="tutorial-hacking-link" class="a-link-button"> Hacking </a>
|
||||||
<a id="tutorial-scripts-link" class="a-link-button"> Scripts </a>
|
<a id="tutorial-scripts-link" class="a-link-button"> Scripts </a>
|
||||||
@ -1028,5 +969,64 @@
|
|||||||
<div class="loaderspinner"></div>
|
<div class="loaderspinner"></div>
|
||||||
<div class="loaderlabel">Loading Bitburner...</div>
|
<div class="loaderlabel">Loading Bitburner...</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
<!--jQuery library-->
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
||||||
|
|
||||||
|
<!-- Utils -->
|
||||||
|
<script src="utils/IPAddress.js"></script>
|
||||||
|
<script src="utils/JSONReviver.js"></script>
|
||||||
|
<script src="utils/StringHelperFunctions.js"></script>
|
||||||
|
<script src="utils/HelperFunctions.js"></script>
|
||||||
|
<script src="utils/DialogBox.js"></script>
|
||||||
|
<script src="utils/PurchaseServerBox.js"></script>
|
||||||
|
<script src="utils/FactionInvitationBox.js"></script>
|
||||||
|
<script src="utils/PurchaseAugmentationBox.js"></script>
|
||||||
|
<script src="utils/TravelBox.js"></script>
|
||||||
|
<script src="utils/PurchaseRamForHomeBox.js"></script>
|
||||||
|
<script src="utils/GameOptions.js"></script>
|
||||||
|
<script src="utils/LogBox.js"></script>
|
||||||
|
<script src="utils/InfiltrationBox.js"></script>
|
||||||
|
<script src="utils/decimal.js"></script>
|
||||||
|
|
||||||
|
<!-- Netscript -->
|
||||||
|
<script src="src/NetscriptWorker.js"></script>
|
||||||
|
<script src="src/NetscriptEvaluator.js"></script>
|
||||||
|
<script src="src/NetscriptEnvironment.js"></script>
|
||||||
|
<script src="src/NetscriptFunctions.js"></script>
|
||||||
|
<script src="utils/acorn.js"></script>
|
||||||
|
|
||||||
|
<!-- Main game files -->
|
||||||
|
<script src="src/Constants.js"></script>
|
||||||
|
<script src="src/HelpText.js"></script>
|
||||||
|
<script src="src/SpecialServerIps.js"></script>
|
||||||
|
<script src="src/Location.js"></script>
|
||||||
|
<script src="src/Script.js"></script>
|
||||||
|
<script src="src/Server.js"></script>
|
||||||
|
<script src="src/Player.js"></script>
|
||||||
|
<script src="src/Faction.js"></script>
|
||||||
|
<script src="src/FactionInfo.js"></script>
|
||||||
|
<script src="src/Company.js"></script>
|
||||||
|
<script src="src/CompanyJobApplication.js"></script>
|
||||||
|
<script src="src/Terminal.js"></script>
|
||||||
|
<script src="src/ServerPurchases.js"></script>
|
||||||
|
<script src="src/CreateProgram.js"></script>
|
||||||
|
<script src="src/Augmentations.js"></script>
|
||||||
|
<script src="src/Perk.js"></script>
|
||||||
|
<script src="src/HacknetNode.js"></script>
|
||||||
|
<script src="src/Crimes.js"></script>
|
||||||
|
<script src="src/Prestige.js"></script>
|
||||||
|
<script src="src/SaveObject.js"></script>
|
||||||
|
<script src="src/DarkWeb.js"></script>
|
||||||
|
<script src="src/InteractiveTutorial.js"></script>
|
||||||
|
<script src="src/Alias.js"></script>
|
||||||
|
<script src="src/Message.js"></script>
|
||||||
|
<script src="src/ActiveScriptsUI.js"></script>
|
||||||
|
<script src="src/Infiltration.js"></script>
|
||||||
|
<script src="src/StockMarket.js"></script>
|
||||||
|
<script src="src/RedPill.js"></script>
|
||||||
|
<script src="src/BitNode.js"></script>
|
||||||
|
<script src="src/Settings.js"></script>
|
||||||
|
|
||||||
|
<script src="src/engine.js"></script>
|
||||||
</html>
|
</html>
|
||||||
|
@ -19,6 +19,7 @@ function Company(name, salaryMult, expMult, jobStatReqOffset) {
|
|||||||
this.playerPosition = ""; //Name (only name, not object) of the current position player holds
|
this.playerPosition = ""; //Name (only name, not object) of the current position player holds
|
||||||
this.playerReputation = 1; //"Reputation" within company, gain reputation by working for company
|
this.playerReputation = 1; //"Reputation" within company, gain reputation by working for company
|
||||||
this.favor = 0;
|
this.favor = 0;
|
||||||
|
this.rolloverRep = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Company.prototype.setInfo = function(inf) {
|
Company.prototype.setInfo = function(inf) {
|
||||||
@ -46,7 +47,32 @@ Company.prototype.hasPosition = function(pos) {
|
|||||||
|
|
||||||
Company.prototype.gainFavor = function() {
|
Company.prototype.gainFavor = function() {
|
||||||
if (this.favor == null || this.favor == undefined) {this.favor = 0;}
|
if (this.favor == null || this.favor == undefined) {this.favor = 0;}
|
||||||
this.favor += Math.max(0, (this.playerReputation-1) / CONSTANTS.CompanyReputationToFavor);
|
if (this.rolloverRep == null || this.rolloverRep == undefined) {this.rolloverRep = 0;}
|
||||||
|
var res = this.getFavorGain();
|
||||||
|
if (res.length != 2) {
|
||||||
|
console.log("Error: invalid result from getFavorGain() function");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.favor += res[0];
|
||||||
|
this.rolloverRep = res[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
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.CompanyReputationToFavorBase *
|
||||||
|
Math.pow(CONSTANTS.CompanyReputationToFavorMult, this.favor);
|
||||||
|
while(rep > 0) {
|
||||||
|
if (rep >= reqdRep) {
|
||||||
|
++favorGain;
|
||||||
|
rep -= reqdRep;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
reqdRep *= CONSTANTS.FactionReputationToFavorMult;
|
||||||
|
}
|
||||||
|
return [favorGain, rep];
|
||||||
}
|
}
|
||||||
|
|
||||||
Company.prototype.toJSON = function() {
|
Company.prototype.toJSON = function() {
|
||||||
|
@ -29,8 +29,11 @@ CONSTANTS = {
|
|||||||
HacknetNodeMaxCores: 16,
|
HacknetNodeMaxCores: 16,
|
||||||
|
|
||||||
/* Faction and Company favor */
|
/* Faction and Company favor */
|
||||||
FactionReputationToFavor: 6500,
|
FactionReputationToFavorBase: 800,
|
||||||
CompanyReputationToFavor: 6000,
|
FactionReputationToFavorMult: 1.02,
|
||||||
|
CompanyReputationToFavorBase: 750,
|
||||||
|
CompanyReputationToFavorMult: 1.02,
|
||||||
|
|
||||||
|
|
||||||
/* Augmentation */
|
/* Augmentation */
|
||||||
//NeuroFlux Governor cost multiplier as you level up
|
//NeuroFlux Governor cost multiplier as you level up
|
||||||
@ -170,8 +173,6 @@ CONSTANTS = {
|
|||||||
CrimeHeist: "pull off the ultimate heist",
|
CrimeHeist: "pull off the ultimate heist",
|
||||||
|
|
||||||
/* Tutorial related things */
|
/* Tutorial related things */
|
||||||
TutorialGettingStartedText: "Todo...",
|
|
||||||
|
|
||||||
TutorialNetworkingText: "Servers are a central part of the game. You start with a single personal server (your home computer) " +
|
TutorialNetworkingText: "Servers are a central part of the game. You start with a single personal server (your home computer) " +
|
||||||
"and you can purchase additional servers as you progress through the game. Connecting to other servers " +
|
"and you can purchase additional servers as you progress through the game. Connecting to other servers " +
|
||||||
"and hacking them can be a major source of income and experience. Servers can also be used to run " +
|
"and hacking them can be a major source of income and experience. Servers can also be used to run " +
|
||||||
@ -325,7 +326,11 @@ CONSTANTS = {
|
|||||||
" <=<br>" +
|
" <=<br>" +
|
||||||
" >=<br>" +
|
" >=<br>" +
|
||||||
" ==<br>" +
|
" ==<br>" +
|
||||||
" !=<br><br>" +
|
" !=<br>" +
|
||||||
|
" ++ (Note: This ONLY pre-increments. Post-increment does not work)<br>" +
|
||||||
|
" -- (Note: This ONLY pre-decrements. Post-decrement does not work)<br>" +
|
||||||
|
" - (Negation operator)<br>" +
|
||||||
|
" !<br><br>" +
|
||||||
"<u><h1> Arrays </h1></u><br>" +
|
"<u><h1> Arrays </h1></u><br>" +
|
||||||
"Netscript arrays have the same properties and functions as javascript arrays. For information see javascripts <a href=\"https://www.w3schools.com/js/js_arrays.asp\" target='_blank'>array</a> documentation.<br><br>"+
|
"Netscript arrays have the same properties and functions as javascript arrays. For information see javascripts <a href=\"https://www.w3schools.com/js/js_arrays.asp\" target='_blank'>array</a> documentation.<br><br>"+
|
||||||
"<u><h1> Script Arguments </h1></u><br>" +
|
"<u><h1> Script Arguments </h1></u><br>" +
|
||||||
@ -672,6 +677,9 @@ CONSTANTS = {
|
|||||||
"World Stock Exchange account and TIX API Access<br>",
|
"World Stock Exchange account and TIX API Access<br>",
|
||||||
|
|
||||||
LatestUpdate:
|
LatestUpdate:
|
||||||
|
"v0.26.5<br>" +
|
||||||
|
"-Reputation gain with factions and companies is no longer a linear conversion, but an exponential one. It " +
|
||||||
|
"will not be easier to gain faction at first, but much harder later. <br>" +
|
||||||
"v0.26.4<br>" +
|
"v0.26.4<br>" +
|
||||||
"-All of the 'low-level servers' in early game that have a required hacking level now have 8GB of RAM " +
|
"-All of the 'low-level servers' in early game that have a required hacking level now have 8GB of RAM " +
|
||||||
"instead of 4GB<br>" +
|
"instead of 4GB<br>" +
|
||||||
|
@ -33,6 +33,7 @@ function Faction(name) {
|
|||||||
|
|
||||||
//Faction favor
|
//Faction favor
|
||||||
this.favor = 0;
|
this.favor = 0;
|
||||||
|
this.rolloverRep = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
Faction.prototype.setAugmentationMultipliers = function(price, rep) {
|
Faction.prototype.setAugmentationMultipliers = function(price, rep) {
|
||||||
@ -46,8 +47,33 @@ Faction.prototype.setInfo = function(inf) {
|
|||||||
|
|
||||||
Faction.prototype.gainFavor = function() {
|
Faction.prototype.gainFavor = function() {
|
||||||
if (this.favor == null || this.favor == undefined) {this.favor = 0;}
|
if (this.favor == null || this.favor == undefined) {this.favor = 0;}
|
||||||
var gain = (this.playerReputation / CONSTANTS.FactionReputationToFavor);
|
if (this.rolloverRep == null || this.rolloverRep == undefined) {this.rolloverRep = 0;}
|
||||||
this.favor += gain;
|
var res = this.getFavorGain();
|
||||||
|
if (res.length != 2) {
|
||||||
|
console.log("Error: invalid result from getFavorGain() function");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.favor += res[0];
|
||||||
|
this.rolloverRep = res[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
//Returns an array with [How much favor would be gained, how much favor would be left over]
|
||||||
|
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.FactionReputationToFavorBase *
|
||||||
|
Math.pow(CONSTANTS.FactionReputationToFavorMult, this.favor);
|
||||||
|
while(rep > 0) {
|
||||||
|
if (rep >= reqdRep) {
|
||||||
|
++favorGain;
|
||||||
|
rep -= reqdRep;
|
||||||
|
} else {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
reqdRep *= CONSTANTS.FactionReputationToFavorMult;
|
||||||
|
}
|
||||||
|
return [favorGain, rep];
|
||||||
}
|
}
|
||||||
|
|
||||||
Faction.prototype.toJSON = function() {
|
Faction.prototype.toJSON = function() {
|
||||||
@ -718,9 +744,12 @@ displayFactionContent = function(factionName) {
|
|||||||
var faction = Factions[factionName];
|
var faction = Factions[factionName];
|
||||||
document.getElementById("faction-name").innerHTML = factionName;
|
document.getElementById("faction-name").innerHTML = factionName;
|
||||||
document.getElementById("faction-info").innerHTML = "<i>" + faction.info + "</i>";
|
document.getElementById("faction-info").innerHTML = "<i>" + faction.info + "</i>";
|
||||||
|
var repGain = faction.getFavorGain();
|
||||||
|
if (repGain.length != 2) {repGain = 0;}
|
||||||
|
repGain = repGain[0];
|
||||||
document.getElementById("faction-reputation").innerHTML = "Reputation: " + formatNumber(faction.playerReputation, 4) +
|
document.getElementById("faction-reputation").innerHTML = "Reputation: " + formatNumber(faction.playerReputation, 4) +
|
||||||
"<span class='tooltiptext'>You will earn " +
|
"<span class='tooltiptext'>You will earn " +
|
||||||
formatNumber(faction.playerReputation / CONSTANTS.FactionReputationToFavor, 4) +
|
formatNumber(repGain, 4) +
|
||||||
" faction favor upon resetting after installing an Augmentation</span>";
|
" faction favor upon resetting after installing an Augmentation</span>";
|
||||||
document.getElementById("faction-favor").innerHTML = "Faction Favor: " + formatNumber(faction.favor, 4) +
|
document.getElementById("faction-favor").innerHTML = "Faction Favor: " + formatNumber(faction.favor, 4) +
|
||||||
"<span class='tooltiptext'>Faction favor increases the rate at which " +
|
"<span class='tooltiptext'>Faction favor increases the rate at which " +
|
||||||
@ -733,13 +762,11 @@ displayFactionContent = function(factionName) {
|
|||||||
var securityWorkDiv = document.getElementById("faction-securitywork-div");
|
var securityWorkDiv = document.getElementById("faction-securitywork-div");
|
||||||
var donateDiv = document.getElementById("faction-donate-div");
|
var donateDiv = document.getElementById("faction-donate-div");
|
||||||
|
|
||||||
//Set new event listener for all of the work buttons
|
|
||||||
//The old buttons need to be replaced to clear the old event listeners
|
|
||||||
var newHackButton = clearEventListeners("faction-hack-button");
|
var newHackButton = clearEventListeners("faction-hack-button");
|
||||||
var newFieldWorkButton = clearEventListeners("faction-fieldwork-button");
|
var newFieldWorkButton = clearEventListeners("faction-fieldwork-button");
|
||||||
var newSecurityWorkButton = clearEventListeners("faction-securitywork-button");
|
var newSecurityWorkButton = clearEventListeners("faction-securitywork-button");
|
||||||
var newDonateWorkButton = clearEventListeners("faction-donate-button");
|
var newDonateWorkButton = clearEventListeners("faction-donate-button");
|
||||||
|
|
||||||
newHackButton.addEventListener("click", function() {
|
newHackButton.addEventListener("click", function() {
|
||||||
Player.startFactionHackWork(faction);
|
Player.startFactionHackWork(faction);
|
||||||
return false;
|
return false;
|
||||||
@ -775,10 +802,8 @@ displayFactionContent = function(factionName) {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
//Set new event listener for the purchase augmentation buttons
|
|
||||||
//The old button needs to be replaced to clear the old event listeners
|
|
||||||
var newPurchaseAugmentationsButton = clearEventListeners("faction-purchase-augmentations");
|
|
||||||
|
|
||||||
|
var newPurchaseAugmentationsButton = clearEventListeners("faction-purchase-augmentations");
|
||||||
newPurchaseAugmentationsButton.addEventListener("click", function() {
|
newPurchaseAugmentationsButton.addEventListener("click", function() {
|
||||||
Engine.hideAllContent();
|
Engine.hideAllContent();
|
||||||
Engine.Display.factionAugmentationsContent.style.visibility = "visible";
|
Engine.Display.factionAugmentationsContent.style.visibility = "visible";
|
||||||
|
@ -574,10 +574,10 @@ function updateInfiltrationButtons(inst, scenario) {
|
|||||||
//Success: 5%, Failure 10%, -Karma
|
//Success: 5%, Failure 10%, -Karma
|
||||||
function attemptInfiltrationKill(inst) {
|
function attemptInfiltrationKill(inst) {
|
||||||
var chance = getInfiltrationKillChance(inst);
|
var chance = getInfiltrationKillChance(inst);
|
||||||
inst.gainStrengthExp(inst.securityLevel / 500) * Player.strength_exp_mult;
|
inst.gainStrengthExp(inst.securityLevel / 400) * Player.strength_exp_mult;
|
||||||
inst.gainDefenseExp(inst.securityLevel / 500) * Player.defense_exp_mult;
|
inst.gainDefenseExp(inst.securityLevel / 400) * Player.defense_exp_mult;
|
||||||
inst.gainDexterityExp(inst.securityLevel / 500) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 400) * Player.dexterity_exp_mult;
|
||||||
inst.gainAgilityExp(inst.securityLevel / 500) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 400) * Player.agility_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
inst.securityLevel *= 1.05;
|
inst.securityLevel *= 1.05;
|
||||||
return [true, 1.05];
|
return [true, 1.05];
|
||||||
@ -600,10 +600,10 @@ function getInfiltrationKillChance(inst) {
|
|||||||
//Success: 3%, Failure: 10%
|
//Success: 3%, Failure: 10%
|
||||||
function attemptInfiltrationKnockout(inst) {
|
function attemptInfiltrationKnockout(inst) {
|
||||||
var chance = getInfiltrationKnockoutChance(inst);
|
var chance = getInfiltrationKnockoutChance(inst);
|
||||||
inst.gainStrengthExp(inst.securityLevel / 500) * Player.strength_exp_mult;
|
inst.gainStrengthExp(inst.securityLevel / 400) * Player.strength_exp_mult;
|
||||||
inst.gainDefenseExp(inst.securityLevel / 500) * Player.defense_exp_mult;
|
inst.gainDefenseExp(inst.securityLevel / 400) * Player.defense_exp_mult;
|
||||||
inst.gainDexterityExp(inst.securityLevel / 500) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 400) * Player.dexterity_exp_mult;
|
||||||
inst.gainAgilityExp(inst.securityLevel / 500) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 400) * Player.agility_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
inst.securityLevel *= 1.03;
|
inst.securityLevel *= 1.03;
|
||||||
return [true, 1.03];
|
return [true, 1.03];
|
||||||
@ -625,9 +625,9 @@ function getInfiltrationKnockoutChance(inst) {
|
|||||||
//Success: 0%, Failure: 10%
|
//Success: 0%, Failure: 10%
|
||||||
function attemptInfiltrationStealthKnockout(inst) {
|
function attemptInfiltrationStealthKnockout(inst) {
|
||||||
var chance = getInfiltrationStealthKnockoutChance(inst);
|
var chance = getInfiltrationStealthKnockoutChance(inst);
|
||||||
inst.gainStrengthExp(inst.securityLevel / 500) * Player.strength_exp_mult;
|
inst.gainStrengthExp(inst.securityLevel / 400) * Player.strength_exp_mult;
|
||||||
inst.gainDexterityExp(inst.securityLevel / 300) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 250) * Player.dexterity_exp_mult;
|
||||||
inst.gainAgilityExp(inst.securityLevel / 300) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 250) * Player.agility_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
return [true, 1];
|
return [true, 1];
|
||||||
} else {
|
} else {
|
||||||
@ -648,9 +648,9 @@ function getInfiltrationStealthKnockoutChance(inst) {
|
|||||||
//Success: 0%, Failure: 5%, -Karma
|
//Success: 0%, Failure: 5%, -Karma
|
||||||
function attemptInfiltrationAssassinate(inst) {
|
function attemptInfiltrationAssassinate(inst) {
|
||||||
var chance = getInfiltrationAssassinateChance(inst);
|
var chance = getInfiltrationAssassinateChance(inst);
|
||||||
inst.gainStrengthExp(inst.securityLevel / 500) * Player.strength_exp_mult;
|
inst.gainStrengthExp(inst.securityLevel / 400) * Player.strength_exp_mult;
|
||||||
inst.gainDexterityExp(inst.securityLevel / 300) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 250) * Player.dexterity_exp_mult;
|
||||||
inst.gainAgilityExp(inst.securityLevel / 300) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 250) * Player.agility_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
return [true, 1];
|
return [true, 1];
|
||||||
} else {
|
} else {
|
||||||
@ -671,10 +671,10 @@ function getInfiltrationAssassinateChance(inst) {
|
|||||||
//Success: 5%, Failure: 10%
|
//Success: 5%, Failure: 10%
|
||||||
function attemptInfiltrationDestroySecurity(inst) {
|
function attemptInfiltrationDestroySecurity(inst) {
|
||||||
var chance = getInfiltrationDestroySecurityChance(inst);
|
var chance = getInfiltrationDestroySecurityChance(inst);
|
||||||
inst.gainStrengthExp(inst.securityLevel / 500) * Player.strength_exp_mult;
|
inst.gainStrengthExp(inst.securityLevel / 400) * Player.strength_exp_mult;
|
||||||
inst.gainDefenseExp(inst.securityLevel / 500) * Player.defense_exp_mult;
|
inst.gainDefenseExp(inst.securityLevel / 400) * Player.defense_exp_mult;
|
||||||
inst.gainDexterityExp(inst.securityLevel / 500) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 400) * Player.dexterity_exp_mult;
|
||||||
inst.gainAgilityExp(inst.securityLevel / 500) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 400) * Player.agility_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
inst.securityLevel *= 1.05;
|
inst.securityLevel *= 1.05;
|
||||||
return [true, 1.05];
|
return [true, 1.05];
|
||||||
@ -698,7 +698,7 @@ function getInfiltrationDestroySecurityChance(inst) {
|
|||||||
//Success: 1%, Failure: 5%
|
//Success: 1%, Failure: 5%
|
||||||
function attemptInfiltrationHack(inst) {
|
function attemptInfiltrationHack(inst) {
|
||||||
var chance = getInfiltrationHackChance(inst);
|
var chance = getInfiltrationHackChance(inst);
|
||||||
inst.gainHackingExp(inst.securityLevel / 200) * Player.hacking_exp_mult;
|
inst.gainHackingExp(inst.securityLevel / 150) * Player.hacking_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
inst.securityLevel *= 1.03;
|
inst.securityLevel *= 1.03;
|
||||||
return [true, 1.03];
|
return [true, 1.03];
|
||||||
@ -719,7 +719,7 @@ function getInfiltrationHackChance(inst) {
|
|||||||
//Success: 0%, Failure: 8%
|
//Success: 0%, Failure: 8%
|
||||||
function attemptInfiltrationSneak(inst) {
|
function attemptInfiltrationSneak(inst) {
|
||||||
var chance = getInfiltrationSneakChance(inst);
|
var chance = getInfiltrationSneakChance(inst);
|
||||||
inst.gainAgilityExp(inst.securityLevel / 200) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 150) * Player.agility_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
return [true, 1];
|
return [true, 1];
|
||||||
} else {
|
} else {
|
||||||
@ -739,7 +739,7 @@ function getInfiltrationSneakChance(inst) {
|
|||||||
//Success: 1%, Failure: 3%
|
//Success: 1%, Failure: 3%
|
||||||
function attemptInfiltrationPickLockedDoor(inst) {
|
function attemptInfiltrationPickLockedDoor(inst) {
|
||||||
var chance = getInfiltrationPickLockedDoorChance(inst);
|
var chance = getInfiltrationPickLockedDoorChance(inst);
|
||||||
inst.gainDexterityExp(inst.securityLevel / 200) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 150) * Player.dexterity_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
inst.securityLevel *= 1.01;
|
inst.securityLevel *= 1.01;
|
||||||
return [true, 1.01];
|
return [true, 1.01];
|
||||||
@ -759,7 +759,7 @@ function getInfiltrationPickLockedDoorChance(inst) {
|
|||||||
//Success: 0%, Failure: 15%,
|
//Success: 0%, Failure: 15%,
|
||||||
function attemptInfiltrationBribe(inst) {
|
function attemptInfiltrationBribe(inst) {
|
||||||
var chance = getInfiltrationBribeChance(inst);
|
var chance = getInfiltrationBribeChance(inst);
|
||||||
inst.gainCharismaExp(inst.securityLevel / 200) * Player.charisma_exp_mult;
|
inst.gainCharismaExp(inst.securityLevel / 100) * Player.charisma_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
return [true, 1];
|
return [true, 1];
|
||||||
} else {
|
} else {
|
||||||
@ -778,8 +778,8 @@ function getInfiltrationBribeChance(inst) {
|
|||||||
//Failure: 5%
|
//Failure: 5%
|
||||||
function attemptInfiltrationEscape(inst) {
|
function attemptInfiltrationEscape(inst) {
|
||||||
var chance = getInfiltrationEscapeChance(inst);
|
var chance = getInfiltrationEscapeChance(inst);
|
||||||
inst.gainAgilityExp(inst.securityLevel / 400) * Player.agility_exp_mult;
|
inst.gainAgilityExp(inst.securityLevel / 250) * Player.agility_exp_mult;
|
||||||
inst.gainDexterityExp(inst.securityLevel / 400) * Player.dexterity_exp_mult;
|
inst.gainDexterityExp(inst.securityLevel / 250) * Player.dexterity_exp_mult;
|
||||||
if (Math.random() <= chance) {
|
if (Math.random() <= chance) {
|
||||||
return [true, 1];
|
return [true, 1];
|
||||||
} else {
|
} else {
|
||||||
|
@ -285,9 +285,12 @@ displayLocationContent = function() {
|
|||||||
locationTxtDiv2.style.display = "block";
|
locationTxtDiv2.style.display = "block";
|
||||||
locationTxtDiv3.style.display = "block";
|
locationTxtDiv3.style.display = "block";
|
||||||
jobTitle.innerHTML = "Job Title: " + Player.companyPosition.positionName;
|
jobTitle.innerHTML = "Job Title: " + Player.companyPosition.positionName;
|
||||||
|
var repGain = company.getFavorGain();
|
||||||
|
if (repGain.length != 2) {repGain = 0;}
|
||||||
|
repGain = repGain[0];
|
||||||
jobReputation.innerHTML = "Company reputation: " + formatNumber(company.playerReputation, 4) +
|
jobReputation.innerHTML = "Company reputation: " + formatNumber(company.playerReputation, 4) +
|
||||||
"<span class='tooltiptext'>You will earn " +
|
"<span class='tooltiptext'>You will earn " +
|
||||||
formatNumber(company.playerReputation / CONSTANTS.CompanyReputationToFavor, 4) +
|
formatNumber(repGain, 4) +
|
||||||
" faction favor upon resetting after installing an Augmentation</span>";
|
" faction favor upon resetting after installing an Augmentation</span>";
|
||||||
companyFavor.innerHTML = "Company Favor: " + formatNumber(company.favor, 4) +
|
companyFavor.innerHTML = "Company Favor: " + formatNumber(company.favor, 4) +
|
||||||
"<span class='tooltiptext'>Company favor increases the rate at which " +
|
"<span class='tooltiptext'>Company favor increases the rate at which " +
|
||||||
@ -1806,8 +1809,7 @@ purchaseTorRouter = function() {
|
|||||||
}
|
}
|
||||||
Player.loseMoney(CONSTANTS.TorRouterCost);
|
Player.loseMoney(CONSTANTS.TorRouterCost);
|
||||||
|
|
||||||
var darkweb = new Server();
|
var darkweb = new Server(createRandomIp(), "darkweb", "", false, false, false, 1);
|
||||||
darkweb.init(createRandomIp(), "darkweb", "", true, false, false, false, 1);
|
|
||||||
AddToAllServers(darkweb);
|
AddToAllServers(darkweb);
|
||||||
SpecialServerIps.addIp("Darkweb Server", darkweb.ip);
|
SpecialServerIps.addIp("Darkweb Server", darkweb.ip);
|
||||||
|
|
||||||
|
@ -671,8 +671,7 @@ function NetscriptFunctions(workerScript) {
|
|||||||
workerScript.scriptRef.log("Error: Not enough money to purchase server. Need $" + formatNumber(cost, 2));
|
workerScript.scriptRef.log("Error: Not enough money to purchase server. Need $" + formatNumber(cost, 2));
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
var newServ = new Server();
|
var newServ = new Server(createRandomIp(), hostnameStr, "", false, true, true, ram);
|
||||||
newServ.init(createRandomIp(), hostnameStr, "", true, false, true, true, ram);
|
|
||||||
AddToAllServers(newServ);
|
AddToAllServers(newServ);
|
||||||
|
|
||||||
Player.purchasedServers.push(newServ.ip);
|
Player.purchasedServers.push(newServ.ip);
|
||||||
@ -694,11 +693,17 @@ function NetscriptFunctions(workerScript) {
|
|||||||
|
|
||||||
if (!server.purchasedByPlayer) {
|
if (!server.purchasedByPlayer) {
|
||||||
workerScript.scriptRef.log("Error: Server " + server.hostname + " is not a purchased server. " +
|
workerScript.scriptRef.log("Error: Server " + server.hostname + " is not a purchased server. " +
|
||||||
"Cannot be deleted. deleteSErver failed");
|
"Cannot be deleted. deleteServer failed");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var ip = server.ip;
|
var ip = server.ip;
|
||||||
|
|
||||||
|
//Delete all scripts running on server
|
||||||
|
for (var i = server.runningScripts.length-1; i >= 0; --i) {
|
||||||
|
killWorkerScript(server.runningScripts[i], ip);
|
||||||
|
}
|
||||||
|
|
||||||
//Delete from all servers
|
//Delete from all servers
|
||||||
delete AllServers[ip];
|
delete AllServers[ip];
|
||||||
|
|
||||||
|
@ -89,8 +89,10 @@ function PlayerObject() {
|
|||||||
this.factionInvitations = []; //Outstanding faction invitations
|
this.factionInvitations = []; //Outstanding faction invitations
|
||||||
|
|
||||||
//Augmentations
|
//Augmentations
|
||||||
this.queuedAugmentations = []; //Purchased but not installed, names only
|
this.queuedAugmentations = [];
|
||||||
this.augmentations = []; //Names of all installed augmentations
|
this.augmentations = [];
|
||||||
|
|
||||||
|
this.sourceFiles = [];
|
||||||
|
|
||||||
//Crime statistics (Total refers to this 'simulation'. Lifetime is forever)
|
//Crime statistics (Total refers to this 'simulation'. Lifetime is forever)
|
||||||
this.karma = 0;
|
this.karma = 0;
|
||||||
@ -183,8 +185,7 @@ function PlayerObject() {
|
|||||||
|
|
||||||
PlayerObject.prototype.init = function() {
|
PlayerObject.prototype.init = function() {
|
||||||
/* Initialize Player's home computer */
|
/* Initialize Player's home computer */
|
||||||
var t_homeComp = new Server();
|
var t_homeComp = new Server(createRandomIp(), "home", "Home PC", true, true, true, 8);
|
||||||
t_homeComp.init(createRandomIp(), "home", "Home PC", true, true, true, true, 8);
|
|
||||||
this.homeComputer = t_homeComp.ip;
|
this.homeComputer = t_homeComp.ip;
|
||||||
this.currentServer = t_homeComp.ip;
|
this.currentServer = t_homeComp.ip;
|
||||||
AddToAllServers(t_homeComp);
|
AddToAllServers(t_homeComp);
|
||||||
|
@ -134,7 +134,6 @@ function prestigeAugmentation() {
|
|||||||
homeComp.runningScripts = [];
|
homeComp.runningScripts = [];
|
||||||
homeComp.serversOnNetwork = [];
|
homeComp.serversOnNetwork = [];
|
||||||
homeComp.isConnectedTo = true;
|
homeComp.isConnectedTo = true;
|
||||||
homeComp.isOnline = true;
|
|
||||||
homeComp.ramUsed = 0;
|
homeComp.ramUsed = 0;
|
||||||
homeComp.programs.push(Programs.NukeProgram);
|
homeComp.programs.push(Programs.NukeProgram);
|
||||||
if (augmentationExists(AugmentationNames.Neurolink) &&
|
if (augmentationExists(AugmentationNames.Neurolink) &&
|
||||||
|
253
src/Server.js
253
src/Server.js
@ -1,22 +1,28 @@
|
|||||||
//Netburner Server class
|
//Netburner Server class
|
||||||
//TODO Make a map of all IPS in the game so far so that we don't accidentally
|
//TODO Make a map of all IPS in the game so far so that we don't accidentally
|
||||||
// get duplicate IPs..however unlikely it is
|
// get duplicate IPs..however unlikely it is
|
||||||
function Server() {
|
function Server(ip=createRandomIp(), hostname="", organizationName="",
|
||||||
|
isConnectedTo=false, adminRights=false, purchasedByPlayer=false, maxRam=0) {
|
||||||
/* Properties */
|
/* Properties */
|
||||||
//Connection information
|
//Connection information
|
||||||
this.ip = "0.0.0.0";
|
this.ip = ip;
|
||||||
this.hostname = "";
|
var i = 0;
|
||||||
this.organizationName = "";
|
while (GetServerByHostname(hostname) != null) {
|
||||||
this.isOnline = true;
|
//Server already exists
|
||||||
this.isConnectedTo = false; //Whether the player is connected to this server
|
hostname = hostname + "-" + i;
|
||||||
|
++i;
|
||||||
|
}
|
||||||
|
this.hostname = hostname;
|
||||||
|
this.organizationName = organizationName;
|
||||||
|
this.isConnectedTo = isConnectedTo; //Whether the player is connected to this server
|
||||||
|
|
||||||
//Access information
|
//Access information
|
||||||
this.hasAdminRights = false; //Whether player has admin rights
|
this.hasAdminRights = adminRights; //Whether player has admin rights
|
||||||
this.purchasedByPlayer = false;
|
this.purchasedByPlayer = purchasedByPlayer;
|
||||||
this.manuallyHacked = false; //Flag that tracks whether or not the server has been hacked at least once
|
this.manuallyHacked = false; //Flag that tracks whether or not the server has been hacked at least once
|
||||||
|
|
||||||
//RAM, CPU speed and Scripts
|
//RAM, CPU speed and Scripts
|
||||||
this.maxRam = 1; //GB
|
this.maxRam = maxRam; //GB
|
||||||
this.ramUsed = 0;
|
this.ramUsed = 0;
|
||||||
this.cpuSpeed = 1; //MHz
|
this.cpuSpeed = 1; //MHz
|
||||||
|
|
||||||
@ -56,26 +62,6 @@ function Server() {
|
|||||||
this.openPortCount = 0;
|
this.openPortCount = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
//Initialize the properties of a server
|
|
||||||
Server.prototype.init = function(ip, hostname, organizationName, onlineStatus, isConnectedTo, adminRights, purchasedByPlayer, maxRam) {
|
|
||||||
this.ip = ip;
|
|
||||||
|
|
||||||
//Check if hostname is unique
|
|
||||||
var i = 0;
|
|
||||||
while (GetServerByHostname(hostname) != null) {
|
|
||||||
//Server already exists
|
|
||||||
hostname = hostname + "-" + i;
|
|
||||||
++i;
|
|
||||||
}
|
|
||||||
this.hostname = hostname;
|
|
||||||
this.organizationName = organizationName;
|
|
||||||
this.isOnline = onlineStatus;
|
|
||||||
this.isConnectedTo = isConnectedTo;
|
|
||||||
this.hasAdminRights = adminRights;
|
|
||||||
this.purchasedByPlayer = purchasedByPlayer;
|
|
||||||
this.maxRam = maxRam;
|
|
||||||
}
|
|
||||||
|
|
||||||
//Set the hacking properties of a server
|
//Set the hacking properties of a server
|
||||||
Server.prototype.setHackingParameters = function(requiredHackingSkill, moneyAvailable, hackDifficulty, serverGrowth) {
|
Server.prototype.setHackingParameters = function(requiredHackingSkill, moneyAvailable, hackDifficulty, serverGrowth) {
|
||||||
this.requiredHackingSkill = requiredHackingSkill;
|
this.requiredHackingSkill = requiredHackingSkill;
|
||||||
@ -143,432 +129,363 @@ Reviver.constructors.Server = Server;
|
|||||||
|
|
||||||
initForeignServers = function() {
|
initForeignServers = function() {
|
||||||
//MegaCorporations
|
//MegaCorporations
|
||||||
var ECorpServer = new Server();
|
var ECorpServer = new Server(createRandomIp(), "ecorp", "ECorp", false, false, false, 0);
|
||||||
ECorpServer.init(createRandomIp(), "ecorp", "ECorp", true, false, false, false, 0);
|
|
||||||
ECorpServer.setHackingParameters(getRandomInt(1150, 1300), getRandomInt(30000000000, 70000000000), 99, 99);
|
ECorpServer.setHackingParameters(getRandomInt(1150, 1300), getRandomInt(30000000000, 70000000000), 99, 99);
|
||||||
ECorpServer.setPortProperties(5);
|
ECorpServer.setPortProperties(5);
|
||||||
AddToAllServers(ECorpServer);
|
AddToAllServers(ECorpServer);
|
||||||
|
|
||||||
var MegaCorpServer = new Server();
|
var MegaCorpServer = new Server(createRandomIp(), "megacorp", "MegaCorp", false, false, false, 0);
|
||||||
MegaCorpServer.init(createRandomIp(), "megacorp", "MegaCorp", true, false, false, false, 0);
|
|
||||||
MegaCorpServer.setHackingParameters(getRandomInt(1150, 1300), getRandomInt(40000000000, 60000000000), 99, 99);
|
MegaCorpServer.setHackingParameters(getRandomInt(1150, 1300), getRandomInt(40000000000, 60000000000), 99, 99);
|
||||||
MegaCorpServer.setPortProperties(5);
|
MegaCorpServer.setPortProperties(5);
|
||||||
AddToAllServers(MegaCorpServer);
|
AddToAllServers(MegaCorpServer);
|
||||||
|
|
||||||
var BachmanAndAssociatesServer = new Server();
|
var BachmanAndAssociatesServer = new Server(createRandomIp(), "b-and-a", "Bachman & Associates", false, false, false, 0);
|
||||||
BachmanAndAssociatesServer.init(createRandomIp(), "b-and-a", "Bachman & Associates", true, false, false, false, 0);
|
|
||||||
BachmanAndAssociatesServer.setHackingParameters(getRandomInt(1000, 1050), getRandomInt(20000000000, 25000000000), getRandomInt(75, 85), getRandomInt(65, 75));
|
BachmanAndAssociatesServer.setHackingParameters(getRandomInt(1000, 1050), getRandomInt(20000000000, 25000000000), getRandomInt(75, 85), getRandomInt(65, 75));
|
||||||
BachmanAndAssociatesServer.setPortProperties(5);
|
BachmanAndAssociatesServer.setPortProperties(5);
|
||||||
AddToAllServers(BachmanAndAssociatesServer);
|
AddToAllServers(BachmanAndAssociatesServer);
|
||||||
|
|
||||||
var BladeIndustriesServer = new Server();
|
var BladeIndustriesServer = new Server(createRandomIp(), "blade", "Blade Industries", false, false, false, 0);
|
||||||
BladeIndustriesServer.init(createRandomIp(), "blade", "Blade Industries", true, false, false, false, 0);
|
|
||||||
BladeIndustriesServer.setHackingParameters(getRandomInt(1000, 1100), getRandomInt(12000000000, 20000000000), getRandomInt(90, 95), getRandomInt(60, 75));
|
BladeIndustriesServer.setHackingParameters(getRandomInt(1000, 1100), getRandomInt(12000000000, 20000000000), getRandomInt(90, 95), getRandomInt(60, 75));
|
||||||
BladeIndustriesServer.setPortProperties(5);
|
BladeIndustriesServer.setPortProperties(5);
|
||||||
AddToAllServers(BladeIndustriesServer);
|
AddToAllServers(BladeIndustriesServer);
|
||||||
|
|
||||||
var NWOServer = new Server();
|
var NWOServer = new Server(createRandomIp(), "nwo", "New World Order", false, false, false, 0);
|
||||||
NWOServer.init(createRandomIp(), "nwo", "New World Order", true, false, false, false, 0);
|
|
||||||
NWOServer.setHackingParameters(getRandomInt(1000, 1200), getRandomInt(25000000000, 35000000000), 99, getRandomInt(75, 85));
|
NWOServer.setHackingParameters(getRandomInt(1000, 1200), getRandomInt(25000000000, 35000000000), 99, getRandomInt(75, 85));
|
||||||
NWOServer.setPortProperties(5);
|
NWOServer.setPortProperties(5);
|
||||||
AddToAllServers(NWOServer);
|
AddToAllServers(NWOServer);
|
||||||
|
|
||||||
var ClarkeIncorporatedServer = new Server();
|
var ClarkeIncorporatedServer = new Server(createRandomIp(), "clarkeinc", "Clarke Incorporated", false, false, false, 0);
|
||||||
ClarkeIncorporatedServer.init(createRandomIp(), "clarkeinc", "Clarke Incorporated", true, false, false, false, 0);
|
|
||||||
ClarkeIncorporatedServer.setHackingParameters(getRandomInt(1000, 1200), getRandomInt(15000000000, 25000000000), getRandomInt(50, 60), getRandomInt(50, 70));
|
ClarkeIncorporatedServer.setHackingParameters(getRandomInt(1000, 1200), getRandomInt(15000000000, 25000000000), getRandomInt(50, 60), getRandomInt(50, 70));
|
||||||
ClarkeIncorporatedServer.setPortProperties(5);
|
ClarkeIncorporatedServer.setPortProperties(5);
|
||||||
AddToAllServers(ClarkeIncorporatedServer);
|
AddToAllServers(ClarkeIncorporatedServer);
|
||||||
|
|
||||||
var OmniTekIncorporatedServer = new Server();
|
var OmniTekIncorporatedServer = new Server(createRandomIp(), "omnitek", "OmniTek Incorporated", false, false, false, 0);
|
||||||
OmniTekIncorporatedServer.init(createRandomIp(), "omnitek", "OmniTek Incorporated", true, false, false, false, 0);
|
|
||||||
OmniTekIncorporatedServer.setHackingParameters(getRandomInt(900, 1100), getRandomInt(15000000000, 20000000000), getRandomInt(90, 99), getRandomInt(95, 99));
|
OmniTekIncorporatedServer.setHackingParameters(getRandomInt(900, 1100), getRandomInt(15000000000, 20000000000), getRandomInt(90, 99), getRandomInt(95, 99));
|
||||||
OmniTekIncorporatedServer.setPortProperties(5);
|
OmniTekIncorporatedServer.setPortProperties(5);
|
||||||
AddToAllServers(OmniTekIncorporatedServer);
|
AddToAllServers(OmniTekIncorporatedServer);
|
||||||
|
|
||||||
var FourSigmaServer = new Server();
|
var FourSigmaServer = new Server(createRandomIp(), "4sigma", "FourSigma", false, false, false, 0);
|
||||||
FourSigmaServer.init(createRandomIp(), "4sigma", "FourSigma", true, false, false, false, 0);
|
|
||||||
FourSigmaServer.setHackingParameters(getRandomInt(950, 1200), getRandomInt(15000000000, 25000000000), getRandomInt(60, 70), getRandomInt(75, 99));
|
FourSigmaServer.setHackingParameters(getRandomInt(950, 1200), getRandomInt(15000000000, 25000000000), getRandomInt(60, 70), getRandomInt(75, 99));
|
||||||
FourSigmaServer.setPortProperties(5);
|
FourSigmaServer.setPortProperties(5);
|
||||||
AddToAllServers(FourSigmaServer);
|
AddToAllServers(FourSigmaServer);
|
||||||
|
|
||||||
var KuaiGongInternationalServer = new Server();
|
var KuaiGongInternationalServer = new Server(createRandomIp(), "kuai-gong", "KuaiGong International", false, false, false, 0);
|
||||||
KuaiGongInternationalServer.init(createRandomIp(), "kuai-gong", "KuaiGong International", true, false, false, false, 0);
|
|
||||||
KuaiGongInternationalServer.setHackingParameters(getRandomInt(1000, 1250), getRandomInt(20000000000, 30000000000), getRandomInt(95, 99), getRandomInt(90, 99));
|
KuaiGongInternationalServer.setHackingParameters(getRandomInt(1000, 1250), getRandomInt(20000000000, 30000000000), getRandomInt(95, 99), getRandomInt(90, 99));
|
||||||
KuaiGongInternationalServer.setPortProperties(5);
|
KuaiGongInternationalServer.setPortProperties(5);
|
||||||
AddToAllServers(KuaiGongInternationalServer);
|
AddToAllServers(KuaiGongInternationalServer);
|
||||||
|
|
||||||
//Technology and communications companies (large targets)
|
//Technology and communications companies (large targets)
|
||||||
var FulcrumTechnologiesServer = new Server();
|
var FulcrumTechnologiesServer = new Server(createRandomIp(), "fulcrumtech", "Fulcrum Technologies", false, false, false, 64);
|
||||||
FulcrumTechnologiesServer.init(createRandomIp(), "fulcrumtech", "Fulcrum Technologies", true, false, false, false, 64);
|
|
||||||
FulcrumTechnologiesServer.setHackingParameters(getRandomInt(1000, 1200), getRandomInt(1400000000, 1800000000), getRandomInt(85, 95), getRandomInt(80, 99));
|
FulcrumTechnologiesServer.setHackingParameters(getRandomInt(1000, 1200), getRandomInt(1400000000, 1800000000), getRandomInt(85, 95), getRandomInt(80, 99));
|
||||||
FulcrumTechnologiesServer.setPortProperties(5);
|
FulcrumTechnologiesServer.setPortProperties(5);
|
||||||
AddToAllServers(FulcrumTechnologiesServer);
|
AddToAllServers(FulcrumTechnologiesServer);
|
||||||
|
|
||||||
var FulcrumSecretTechnologiesServer = new Server();
|
var FulcrumSecretTechnologiesServer = new Server(createRandomIp(), "fulcrumassets", "Fulcrum Technologies Assets", false, false, false, 0);
|
||||||
FulcrumSecretTechnologiesServer.init(createRandomIp(), "fulcrumassets", "Fulcrum Technologies Assets", true, false, false, false, 0);
|
|
||||||
FulcrumSecretTechnologiesServer.setHackingParameters(getRandomInt(1200, 1500), 1000000, 99, 1);
|
FulcrumSecretTechnologiesServer.setHackingParameters(getRandomInt(1200, 1500), 1000000, 99, 1);
|
||||||
FulcrumSecretTechnologiesServer.setPortProperties(5);
|
FulcrumSecretTechnologiesServer.setPortProperties(5);
|
||||||
AddToAllServers(FulcrumSecretTechnologiesServer);
|
AddToAllServers(FulcrumSecretTechnologiesServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.FulcrumSecretTechnologies, FulcrumSecretTechnologiesServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.FulcrumSecretTechnologies, FulcrumSecretTechnologiesServer.ip);
|
||||||
|
|
||||||
var StormTechnologiesServer = new Server();
|
var StormTechnologiesServer = new Server(createRandomIp(), "stormtech", "Storm Technologies", false, false, false, 0);
|
||||||
StormTechnologiesServer.init(createRandomIp(), "stormtech", "Storm Technologies", true, false, false, false, 0);
|
|
||||||
StormTechnologiesServer.setHackingParameters(getRandomInt(900, 1050), getRandomInt(1000000000, 1200000000), getRandomInt(80, 90), getRandomInt(70, 90));
|
StormTechnologiesServer.setHackingParameters(getRandomInt(900, 1050), getRandomInt(1000000000, 1200000000), getRandomInt(80, 90), getRandomInt(70, 90));
|
||||||
StormTechnologiesServer.setPortProperties(5);
|
StormTechnologiesServer.setPortProperties(5);
|
||||||
AddToAllServers(StormTechnologiesServer);
|
AddToAllServers(StormTechnologiesServer);
|
||||||
|
|
||||||
var DefCommServer = new Server();
|
var DefCommServer = new Server(createRandomIp(), "defcomm", "DefComm", false, false, false, 0);
|
||||||
DefCommServer.init(createRandomIp(), "defcomm", "DefComm", true, false, false, false, 0);
|
|
||||||
DefCommServer.setHackingParameters(getRandomInt(900, 1000), getRandomInt(800000000, 950000000), getRandomInt(85, 95), getRandomInt(50, 70));
|
DefCommServer.setHackingParameters(getRandomInt(900, 1000), getRandomInt(800000000, 950000000), getRandomInt(85, 95), getRandomInt(50, 70));
|
||||||
DefCommServer.setPortProperties(5);
|
DefCommServer.setPortProperties(5);
|
||||||
AddToAllServers(DefCommServer);
|
AddToAllServers(DefCommServer);
|
||||||
|
|
||||||
var InfoCommServer = new Server();
|
var InfoCommServer = new Server(createRandomIp(), "infocomm", "InfoComm", false, false, false, 0);
|
||||||
InfoCommServer.init(createRandomIp(), "infocomm", "InfoComm", true, false, false, false, 0);
|
|
||||||
InfoCommServer.setHackingParameters(getRandomInt(875, 950), getRandomInt(600000000, 900000000), getRandomInt(70, 90), getRandomInt(35, 75));
|
InfoCommServer.setHackingParameters(getRandomInt(875, 950), getRandomInt(600000000, 900000000), getRandomInt(70, 90), getRandomInt(35, 75));
|
||||||
InfoCommServer.setPortProperties(5);
|
InfoCommServer.setPortProperties(5);
|
||||||
AddToAllServers(InfoCommServer);
|
AddToAllServers(InfoCommServer);
|
||||||
|
|
||||||
var HeliosLabsServer = new Server();
|
var HeliosLabsServer = new Server(createRandomIp(), "helios", "Helios Labs", false, false, false, 0);
|
||||||
HeliosLabsServer.init(createRandomIp(), "helios", "Helios Labs", true, false, false, false, 0);
|
|
||||||
HeliosLabsServer.setHackingParameters(getRandomInt(800, 900), getRandomInt(550000000, 750000000), getRandomInt(85, 95), getRandomInt(70, 80));
|
HeliosLabsServer.setHackingParameters(getRandomInt(800, 900), getRandomInt(550000000, 750000000), getRandomInt(85, 95), getRandomInt(70, 80));
|
||||||
HeliosLabsServer.setPortProperties(5);
|
HeliosLabsServer.setPortProperties(5);
|
||||||
AddToAllServers(HeliosLabsServer);
|
AddToAllServers(HeliosLabsServer);
|
||||||
|
|
||||||
var VitaLifeServer = new Server();
|
var VitaLifeServer = new Server(createRandomIp(), "vitalife", "VitaLife", false, false, false, 32);
|
||||||
VitaLifeServer.init(createRandomIp(), "vitalife", "VitaLife", true, false, false, false, 32);
|
|
||||||
VitaLifeServer.setHackingParameters(getRandomInt(775, 900), getRandomInt(700000000, 800000000), getRandomInt(80, 90), getRandomInt(60, 80));
|
VitaLifeServer.setHackingParameters(getRandomInt(775, 900), getRandomInt(700000000, 800000000), getRandomInt(80, 90), getRandomInt(60, 80));
|
||||||
VitaLifeServer.setPortProperties(5);
|
VitaLifeServer.setPortProperties(5);
|
||||||
AddToAllServers(VitaLifeServer);
|
AddToAllServers(VitaLifeServer);
|
||||||
|
|
||||||
var IcarusMicrosystemsServer = new Server();
|
var IcarusMicrosystemsServer = new Server(createRandomIp(), "icarus", "Icarus Microsystems", false, false, false, 0);
|
||||||
IcarusMicrosystemsServer.init(createRandomIp(), "icarus", "Icarus Microsystems", true, false, false, false, 0);
|
|
||||||
IcarusMicrosystemsServer.setHackingParameters(getRandomInt(850, 925), getRandomInt(900000000, 1000000000), getRandomInt(85, 95), getRandomInt(85, 95));
|
IcarusMicrosystemsServer.setHackingParameters(getRandomInt(850, 925), getRandomInt(900000000, 1000000000), getRandomInt(85, 95), getRandomInt(85, 95));
|
||||||
IcarusMicrosystemsServer.setPortProperties(5);
|
IcarusMicrosystemsServer.setPortProperties(5);
|
||||||
AddToAllServers(IcarusMicrosystemsServer);
|
AddToAllServers(IcarusMicrosystemsServer);
|
||||||
|
|
||||||
var UniversalEnergyServer = new Server();
|
var UniversalEnergyServer = new Server(createRandomIp(), "univ-energy", "Universal Energy", false, false, false, 32);
|
||||||
UniversalEnergyServer.init(createRandomIp(), "univ-energy", "Universal Energy", true, false, false, false, 32);
|
|
||||||
UniversalEnergyServer.setHackingParameters(getRandomInt(800, 900), getRandomInt(1100000000, 1200000000), getRandomInt(80, 90), getRandomInt(80, 90));
|
UniversalEnergyServer.setHackingParameters(getRandomInt(800, 900), getRandomInt(1100000000, 1200000000), getRandomInt(80, 90), getRandomInt(80, 90));
|
||||||
UniversalEnergyServer.setPortProperties(4);
|
UniversalEnergyServer.setPortProperties(4);
|
||||||
AddToAllServers(UniversalEnergyServer);
|
AddToAllServers(UniversalEnergyServer);
|
||||||
|
|
||||||
var TitanLabsServer = new Server();
|
var TitanLabsServer = new Server(createRandomIp(), "titan-labs", "Titan Laboratories", false, false, false, 32);
|
||||||
TitanLabsServer.init(createRandomIp(), "titan-labs", "Titan Laboratories", true, false, false, false, 32);
|
|
||||||
TitanLabsServer.setHackingParameters(getRandomInt(800, 875), getRandomInt(750000000, 900000000), getRandomInt(70, 80), getRandomInt(60, 80));
|
TitanLabsServer.setHackingParameters(getRandomInt(800, 875), getRandomInt(750000000, 900000000), getRandomInt(70, 80), getRandomInt(60, 80));
|
||||||
TitanLabsServer.setPortProperties(5);
|
TitanLabsServer.setPortProperties(5);
|
||||||
AddToAllServers(TitanLabsServer);
|
AddToAllServers(TitanLabsServer);
|
||||||
|
|
||||||
var MicrodyneTechnologiesServer = new Server();
|
var MicrodyneTechnologiesServer = new Server(createRandomIp(), "microdyne", "Microdyne Technologies", false, false, false, 16);
|
||||||
MicrodyneTechnologiesServer.init(createRandomIp(), "microdyne", "Microdyne Technologies", true, false, false, false, 16);
|
|
||||||
MicrodyneTechnologiesServer.setHackingParameters(getRandomInt(800, 875), getRandomInt(500000000, 700000000), getRandomInt(65, 75), getRandomInt(70, 90));
|
MicrodyneTechnologiesServer.setHackingParameters(getRandomInt(800, 875), getRandomInt(500000000, 700000000), getRandomInt(65, 75), getRandomInt(70, 90));
|
||||||
MicrodyneTechnologiesServer.setPortProperties(5);
|
MicrodyneTechnologiesServer.setPortProperties(5);
|
||||||
AddToAllServers(MicrodyneTechnologiesServer);
|
AddToAllServers(MicrodyneTechnologiesServer);
|
||||||
|
|
||||||
var TaiYangDigitalServer = new Server();
|
var TaiYangDigitalServer = new Server(createRandomIp(), "taiyang-digital", "Taiyang Digital", false, false, false, 0);
|
||||||
TaiYangDigitalServer.init(createRandomIp(), "taiyang-digital", "Taiyang Digital", true, false, false, false, 0);
|
|
||||||
TaiYangDigitalServer.setHackingParameters(getRandomInt(850, 950), getRandomInt(800000000, 900000000), getRandomInt(70, 80), getRandomInt(70, 80));
|
TaiYangDigitalServer.setHackingParameters(getRandomInt(850, 950), getRandomInt(800000000, 900000000), getRandomInt(70, 80), getRandomInt(70, 80));
|
||||||
TaiYangDigitalServer.setPortProperties(5);
|
TaiYangDigitalServer.setPortProperties(5);
|
||||||
AddToAllServers(TaiYangDigitalServer);
|
AddToAllServers(TaiYangDigitalServer);
|
||||||
|
|
||||||
var GalacticCyberSystemsServer = new Server();
|
var GalacticCyberSystemsServer = new Server(createRandomIp(), "galactic-cyber", "Galactic Cybersystems", false, false, false, 0);
|
||||||
GalacticCyberSystemsServer.init(createRandomIp(), "galactic-cyber", "Galactic Cybersystems", true, false, false, false, 0);
|
|
||||||
GalacticCyberSystemsServer.setHackingParameters(getRandomInt(825, 875), getRandomInt(750000000, 850000000), getRandomInt(55, 65), getRandomInt(70, 90));
|
GalacticCyberSystemsServer.setHackingParameters(getRandomInt(825, 875), getRandomInt(750000000, 850000000), getRandomInt(55, 65), getRandomInt(70, 90));
|
||||||
GalacticCyberSystemsServer.setPortProperties(5);
|
GalacticCyberSystemsServer.setPortProperties(5);
|
||||||
AddToAllServers(GalacticCyberSystemsServer);
|
AddToAllServers(GalacticCyberSystemsServer);
|
||||||
|
|
||||||
//Defense Companies ("Large" Companies)
|
//Defense Companies ("Large" Companies)
|
||||||
var AeroCorpServer = new Server();
|
var AeroCorpServer = new Server(createRandomIp(), "aerocorp", "AeroCorp", false, false, false, 0);
|
||||||
AeroCorpServer.init(createRandomIp(), "aerocorp", "AeroCorp", true, false, false, false, 0);
|
|
||||||
AeroCorpServer.setHackingParameters(getRandomInt(850, 925), getRandomInt(1000000000, 1200000000), getRandomInt(80, 90), getRandomInt(55, 65));
|
AeroCorpServer.setHackingParameters(getRandomInt(850, 925), getRandomInt(1000000000, 1200000000), getRandomInt(80, 90), getRandomInt(55, 65));
|
||||||
AeroCorpServer.setPortProperties(5);
|
AeroCorpServer.setPortProperties(5);
|
||||||
AddToAllServers(AeroCorpServer);
|
AddToAllServers(AeroCorpServer);
|
||||||
|
|
||||||
var OmniaCybersystemsServer = new Server();
|
var OmniaCybersystemsServer = new Server(createRandomIp(), "omnia", "Omnia Cybersystems", false, false, false, 0);
|
||||||
OmniaCybersystemsServer.init(createRandomIp(), "omnia", "Omnia Cybersystems", true, false, false, false, 0);
|
|
||||||
OmniaCybersystemsServer.setHackingParameters(getRandomInt(850, 950), getRandomInt(900000000, 1000000000), getRandomInt(85, 95), getRandomInt(60, 70));
|
OmniaCybersystemsServer.setHackingParameters(getRandomInt(850, 950), getRandomInt(900000000, 1000000000), getRandomInt(85, 95), getRandomInt(60, 70));
|
||||||
OmniaCybersystemsServer.setPortProperties(5);
|
OmniaCybersystemsServer.setPortProperties(5);
|
||||||
AddToAllServers(OmniaCybersystemsServer);
|
AddToAllServers(OmniaCybersystemsServer);
|
||||||
|
|
||||||
var ZBDefenseServer = new Server();
|
var ZBDefenseServer = new Server(createRandomIp(), "zb-def", "ZB Defense Industries", false, false, false, 0);
|
||||||
ZBDefenseServer.init(createRandomIp(), "zb-def", "ZB Defense Industries", true, false, false, false, 0);
|
|
||||||
ZBDefenseServer.setHackingParameters(getRandomInt(775, 825), getRandomInt(900000000, 1100000000), getRandomInt(55, 65), getRandomInt(65, 75));
|
ZBDefenseServer.setHackingParameters(getRandomInt(775, 825), getRandomInt(900000000, 1100000000), getRandomInt(55, 65), getRandomInt(65, 75));
|
||||||
ZBDefenseServer.setPortProperties(4);
|
ZBDefenseServer.setPortProperties(4);
|
||||||
AddToAllServers(ZBDefenseServer);
|
AddToAllServers(ZBDefenseServer);
|
||||||
|
|
||||||
var AppliedEnergeticsServer = new Server();
|
var AppliedEnergeticsServer = new Server(createRandomIp(), "applied-energetics", "Applied Energetics", false, false, false, 0);
|
||||||
AppliedEnergeticsServer.init(createRandomIp(), "applied-energetics", "Applied Energetics", true, false, false, false, 0);
|
|
||||||
AppliedEnergeticsServer.setHackingParameters(getRandomInt(775, 850), getRandomInt(700000000, 1000000000), getRandomInt(60, 80), getRandomInt(70, 75));
|
AppliedEnergeticsServer.setHackingParameters(getRandomInt(775, 850), getRandomInt(700000000, 1000000000), getRandomInt(60, 80), getRandomInt(70, 75));
|
||||||
AppliedEnergeticsServer.setPortProperties(4);
|
AppliedEnergeticsServer.setPortProperties(4);
|
||||||
AddToAllServers(AppliedEnergeticsServer);
|
AddToAllServers(AppliedEnergeticsServer);
|
||||||
|
|
||||||
var SolarisSpaceSystemsServer = new Server();
|
var SolarisSpaceSystemsServer = new Server(createRandomIp(), "solaris", "Solaris Space Systems", false, false, false, 0);
|
||||||
SolarisSpaceSystemsServer.init(createRandomIp(), "solaris", "Solaris Space Systems", true, false, false, false, 0);
|
|
||||||
SolarisSpaceSystemsServer.setHackingParameters(getRandomInt(750, 850), getRandomInt(700000000, 900000000), getRandomInt(70, 80), getRandomInt(70, 80));
|
SolarisSpaceSystemsServer.setHackingParameters(getRandomInt(750, 850), getRandomInt(700000000, 900000000), getRandomInt(70, 80), getRandomInt(70, 80));
|
||||||
SolarisSpaceSystemsServer.setPortProperties(5);
|
SolarisSpaceSystemsServer.setPortProperties(5);
|
||||||
AddToAllServers(SolarisSpaceSystemsServer);
|
AddToAllServers(SolarisSpaceSystemsServer);
|
||||||
|
|
||||||
var DeltaOneServer = new Server();
|
var DeltaOneServer = new Server(createRandomIp(), "deltaone", "Delta One", false, false, false, 0);
|
||||||
DeltaOneServer.init(createRandomIp(), "deltaone", "Delta One", true, false, false, false, 0);
|
|
||||||
DeltaOneServer.setHackingParameters(getRandomInt(800, 900), getRandomInt(1300000000, 1700000000), getRandomInt(75, 85), getRandomInt(50, 70));
|
DeltaOneServer.setHackingParameters(getRandomInt(800, 900), getRandomInt(1300000000, 1700000000), getRandomInt(75, 85), getRandomInt(50, 70));
|
||||||
DeltaOneServer.setPortProperties(5);
|
DeltaOneServer.setPortProperties(5);
|
||||||
AddToAllServers(DeltaOneServer);
|
AddToAllServers(DeltaOneServer);
|
||||||
|
|
||||||
//Health, medicine, pharmaceutical companies ("Large" targets)
|
//Health, medicine, pharmaceutical companies ("Large" targets)
|
||||||
var GlobalPharmaceuticalsServer = new Server();
|
var GlobalPharmaceuticalsServer = new Server(createRandomIp(), "global-pharm", "Global Pharmaceuticals", false, false, false, 16);
|
||||||
GlobalPharmaceuticalsServer.init(createRandomIp(), "global-pharm", "Global Pharmaceuticals", true, false, false, false, 16);
|
|
||||||
GlobalPharmaceuticalsServer.setHackingParameters(getRandomInt(750, 850), getRandomInt(1500000000, 1750000000), getRandomInt(75, 85), getRandomInt(80, 90));
|
GlobalPharmaceuticalsServer.setHackingParameters(getRandomInt(750, 850), getRandomInt(1500000000, 1750000000), getRandomInt(75, 85), getRandomInt(80, 90));
|
||||||
GlobalPharmaceuticalsServer.setPortProperties(4);
|
GlobalPharmaceuticalsServer.setPortProperties(4);
|
||||||
AddToAllServers(GlobalPharmaceuticalsServer);
|
AddToAllServers(GlobalPharmaceuticalsServer);
|
||||||
|
|
||||||
var NovaMedicalServer = new Server();
|
var NovaMedicalServer = new Server(createRandomIp(), "nova-med", "Nova Medical", false, false, false, 0);
|
||||||
NovaMedicalServer.init(createRandomIp(), "nova-med", "Nova Medical", true, false, false, false, 0);
|
|
||||||
NovaMedicalServer.setHackingParameters(getRandomInt(775, 850), getRandomInt(1100000000, 1250000000), getRandomInt(60, 80), getRandomInt(65, 85));
|
NovaMedicalServer.setHackingParameters(getRandomInt(775, 850), getRandomInt(1100000000, 1250000000), getRandomInt(60, 80), getRandomInt(65, 85));
|
||||||
NovaMedicalServer.setPortProperties(4);
|
NovaMedicalServer.setPortProperties(4);
|
||||||
AddToAllServers(NovaMedicalServer);
|
AddToAllServers(NovaMedicalServer);
|
||||||
|
|
||||||
var ZeusMedicalServer = new Server();
|
var ZeusMedicalServer = new Server(createRandomIp(), "zeus-med", "Zeus Medical", false, false, false, 0);
|
||||||
ZeusMedicalServer.init(createRandomIp(), "zeus-med", "Zeus Medical", true, false, false, false, 0);
|
|
||||||
ZeusMedicalServer.setHackingParameters(getRandomInt(800, 850), getRandomInt(1300000000, 1500000000), getRandomInt(70, 90), getRandomInt(70, 80));
|
ZeusMedicalServer.setHackingParameters(getRandomInt(800, 850), getRandomInt(1300000000, 1500000000), getRandomInt(70, 90), getRandomInt(70, 80));
|
||||||
ZeusMedicalServer.setPortProperties(5);
|
ZeusMedicalServer.setPortProperties(5);
|
||||||
AddToAllServers(ZeusMedicalServer);
|
AddToAllServers(ZeusMedicalServer);
|
||||||
|
|
||||||
var UnitaLifeGroupServer = new Server();
|
var UnitaLifeGroupServer = new Server(createRandomIp(), "unitalife", "UnitaLife Group", false, false, false, 32);
|
||||||
UnitaLifeGroupServer.init(createRandomIp(), "unitalife", "UnitaLife Group", true, false, false, false, 32);
|
|
||||||
UnitaLifeGroupServer.setHackingParameters(getRandomInt(775, 825), getRandomInt(1000000000, 1100000000), getRandomInt(70, 80), getRandomInt(70, 80));
|
UnitaLifeGroupServer.setHackingParameters(getRandomInt(775, 825), getRandomInt(1000000000, 1100000000), getRandomInt(70, 80), getRandomInt(70, 80));
|
||||||
UnitaLifeGroupServer.setPortProperties(4);
|
UnitaLifeGroupServer.setPortProperties(4);
|
||||||
AddToAllServers(UnitaLifeGroupServer);
|
AddToAllServers(UnitaLifeGroupServer);
|
||||||
|
|
||||||
//"Medium level" targets
|
//"Medium level" targets
|
||||||
var LexoCorpServer = new Server();
|
var LexoCorpServer = new Server(createRandomIp(), "lexo-corp", "Lexo Corporation", false, false, false, 16);
|
||||||
LexoCorpServer.init(createRandomIp(), "lexo-corp", "Lexo Corporation", true, false, false, false, 16);
|
|
||||||
LexoCorpServer.setHackingParameters(getRandomInt(650, 750), getRandomInt(700000000, 800000000), getRandomInt(60, 80), getRandomInt(55, 65));
|
LexoCorpServer.setHackingParameters(getRandomInt(650, 750), getRandomInt(700000000, 800000000), getRandomInt(60, 80), getRandomInt(55, 65));
|
||||||
LexoCorpServer.setPortProperties(4);
|
LexoCorpServer.setPortProperties(4);
|
||||||
AddToAllServers(LexoCorpServer);
|
AddToAllServers(LexoCorpServer);
|
||||||
|
|
||||||
var RhoConstructionServer = new Server();
|
var RhoConstructionServer = new Server(createRandomIp(), "rho-construction", "Rho Construction", false, false, false, 0);
|
||||||
RhoConstructionServer.init(createRandomIp(), "rho-construction", "Rho Construction", true, false, false, false, 0);
|
|
||||||
RhoConstructionServer.setHackingParameters(getRandomInt(475, 525), getRandomInt(500000000, 700000000), getRandomInt(40, 60), getRandomInt(40, 60));
|
RhoConstructionServer.setHackingParameters(getRandomInt(475, 525), getRandomInt(500000000, 700000000), getRandomInt(40, 60), getRandomInt(40, 60));
|
||||||
RhoConstructionServer.setPortProperties(3);
|
RhoConstructionServer.setPortProperties(3);
|
||||||
AddToAllServers(RhoConstructionServer);
|
AddToAllServers(RhoConstructionServer);
|
||||||
|
|
||||||
var AlphaEnterprisesServer = new Server();
|
var AlphaEnterprisesServer = new Server(createRandomIp(), "alpha-ent", "Alpha Enterprises", false, false, false, 0);
|
||||||
AlphaEnterprisesServer.init(createRandomIp(), "alpha-ent", "Alpha Enterprises", true, false, false, false, 0);
|
|
||||||
AlphaEnterprisesServer.setHackingParameters(getRandomInt(500, 600), getRandomInt(600000000, 750000000), getRandomInt(50, 70), getRandomInt(50, 60));
|
AlphaEnterprisesServer.setHackingParameters(getRandomInt(500, 600), getRandomInt(600000000, 750000000), getRandomInt(50, 70), getRandomInt(50, 60));
|
||||||
AlphaEnterprisesServer.setPortProperties(4);
|
AlphaEnterprisesServer.setPortProperties(4);
|
||||||
AddToAllServers(AlphaEnterprisesServer);
|
AddToAllServers(AlphaEnterprisesServer);
|
||||||
|
|
||||||
|
|
||||||
var AevumPoliceServer = new Server();
|
var AevumPoliceServer = new Server(createRandomIp(), "aevum-police", "Aevum Police Network", false, false, false, 0);
|
||||||
AevumPoliceServer.init(createRandomIp(), "aevum-police", "Aevum Police Network", true, false, false, false, 0);
|
|
||||||
AevumPoliceServer.setHackingParameters(getRandomInt(400, 450), getRandomInt(200000000, 400000000), getRandomInt(70, 80), getRandomInt(30, 50));
|
AevumPoliceServer.setHackingParameters(getRandomInt(400, 450), getRandomInt(200000000, 400000000), getRandomInt(70, 80), getRandomInt(30, 50));
|
||||||
AevumPoliceServer.setPortProperties(4);
|
AevumPoliceServer.setPortProperties(4);
|
||||||
AddToAllServers(AevumPoliceServer);
|
AddToAllServers(AevumPoliceServer);
|
||||||
|
|
||||||
var RothmanUniversityServer = new Server();
|
var RothmanUniversityServer = new Server(createRandomIp(), "rothman-uni", "Rothman University Network", false, false, false, 4);
|
||||||
RothmanUniversityServer.init(createRandomIp(), "rothman-uni", "Rothman University Network", true, false, false, false, 4);
|
|
||||||
RothmanUniversityServer.setHackingParameters(getRandomInt(370, 430), getRandomInt(175000000, 250000000), getRandomInt(45, 55), getRandomInt(35, 45));
|
RothmanUniversityServer.setHackingParameters(getRandomInt(370, 430), getRandomInt(175000000, 250000000), getRandomInt(45, 55), getRandomInt(35, 45));
|
||||||
RothmanUniversityServer.setPortProperties(3);
|
RothmanUniversityServer.setPortProperties(3);
|
||||||
AddToAllServers(RothmanUniversityServer);
|
AddToAllServers(RothmanUniversityServer);
|
||||||
|
|
||||||
var ZBInstituteOfTechnologyServer = new Server();
|
var ZBInstituteOfTechnologyServer = new Server(createRandomIp(), "zb-institute", "ZB Institute of Technology Network", false, false, false, 4);
|
||||||
ZBInstituteOfTechnologyServer.init(createRandomIp(), "zb-institute", "ZB Institute of Technology Network", true, false, false, false, 4);
|
|
||||||
ZBInstituteOfTechnologyServer.setHackingParameters(getRandomInt(725, 775), getRandomInt(800000000, 1100000000), getRandomInt(65, 85), getRandomInt(75, 85));
|
ZBInstituteOfTechnologyServer.setHackingParameters(getRandomInt(725, 775), getRandomInt(800000000, 1100000000), getRandomInt(65, 85), getRandomInt(75, 85));
|
||||||
ZBInstituteOfTechnologyServer.setPortProperties(5);
|
ZBInstituteOfTechnologyServer.setPortProperties(5);
|
||||||
AddToAllServers(ZBInstituteOfTechnologyServer);
|
AddToAllServers(ZBInstituteOfTechnologyServer);
|
||||||
|
|
||||||
var SummitUniversityServer = new Server();
|
var SummitUniversityServer = new Server(createRandomIp(), "summit-uni", "Summit University Network", false, false, false, 4);
|
||||||
SummitUniversityServer.init(createRandomIp(), "summit-uni", "Summit University Network", true, false, false, false, 4);
|
|
||||||
SummitUniversityServer.setHackingParameters(getRandomInt(425, 475), getRandomInt(200000000, 350000000), getRandomInt(45, 65), getRandomInt(40, 60));
|
SummitUniversityServer.setHackingParameters(getRandomInt(425, 475), getRandomInt(200000000, 350000000), getRandomInt(45, 65), getRandomInt(40, 60));
|
||||||
SummitUniversityServer.setPortProperties(3);
|
SummitUniversityServer.setPortProperties(3);
|
||||||
AddToAllServers(SummitUniversityServer);
|
AddToAllServers(SummitUniversityServer);
|
||||||
|
|
||||||
var SysCoreSecuritiesServer = new Server();
|
var SysCoreSecuritiesServer = new Server(createRandomIp(), "syscore", "SysCore Securities", false, false, false, 0);
|
||||||
SysCoreSecuritiesServer.init(createRandomIp(), "syscore", "SysCore Securities", true, false, false, false, 0);
|
|
||||||
SysCoreSecuritiesServer.setHackingParameters(getRandomInt(550, 650), getRandomInt(400000000, 600000000), getRandomInt(60, 80), getRandomInt(60, 70));
|
SysCoreSecuritiesServer.setHackingParameters(getRandomInt(550, 650), getRandomInt(400000000, 600000000), getRandomInt(60, 80), getRandomInt(60, 70));
|
||||||
SysCoreSecuritiesServer.setPortProperties(4);
|
SysCoreSecuritiesServer.setPortProperties(4);
|
||||||
AddToAllServers(SysCoreSecuritiesServer);
|
AddToAllServers(SysCoreSecuritiesServer);
|
||||||
|
|
||||||
var CatalystVenturesServer = new Server();
|
var CatalystVenturesServer = new Server(createRandomIp(), "catalyst", "Catalyst Ventures", false, false, false, 0);
|
||||||
CatalystVenturesServer.init(createRandomIp(), "catalyst", "Catalyst Ventures", true, false, false, false, 0);
|
|
||||||
CatalystVenturesServer.setHackingParameters(getRandomInt(400, 450), getRandomInt(300000000, 550000000), getRandomInt(60, 70), getRandomInt(25, 55));
|
CatalystVenturesServer.setHackingParameters(getRandomInt(400, 450), getRandomInt(300000000, 550000000), getRandomInt(60, 70), getRandomInt(25, 55));
|
||||||
CatalystVenturesServer.setPortProperties(3);
|
CatalystVenturesServer.setPortProperties(3);
|
||||||
AddToAllServers(CatalystVenturesServer);
|
AddToAllServers(CatalystVenturesServer);
|
||||||
|
|
||||||
var TheHubServer = new Server();
|
var TheHubServer = new Server(createRandomIp(), "the-hub", "The Hub", false, false, false, 0);
|
||||||
TheHubServer.init(createRandomIp(), "the-hub", "The Hub", true, false, false, false, 0);
|
|
||||||
TheHubServer.setHackingParameters(getRandomInt(275, 325), getRandomInt(150000000, 200000000), getRandomInt(35, 45), getRandomInt(45, 55));
|
TheHubServer.setHackingParameters(getRandomInt(275, 325), getRandomInt(150000000, 200000000), getRandomInt(35, 45), getRandomInt(45, 55));
|
||||||
TheHubServer.setPortProperties(2);
|
TheHubServer.setPortProperties(2);
|
||||||
AddToAllServers(TheHubServer);
|
AddToAllServers(TheHubServer);
|
||||||
|
|
||||||
var CompuTekServer = new Server();
|
var CompuTekServer = new Server(createRandomIp(), "comptek", "CompuTek", false, false, false, 8);
|
||||||
CompuTekServer.init(createRandomIp(), "comptek", "CompuTek", true, false, false, false, 8);
|
|
||||||
CompuTekServer.setHackingParameters(getRandomInt(300, 400), getRandomInt(220000000, 250000000), getRandomInt(55, 65), getRandomInt(45, 65));
|
CompuTekServer.setHackingParameters(getRandomInt(300, 400), getRandomInt(220000000, 250000000), getRandomInt(55, 65), getRandomInt(45, 65));
|
||||||
CompuTekServer.setPortProperties(3);
|
CompuTekServer.setPortProperties(3);
|
||||||
AddToAllServers(CompuTekServer);
|
AddToAllServers(CompuTekServer);
|
||||||
|
|
||||||
var NetLinkTechnologiesServer = new Server();
|
var NetLinkTechnologiesServer = new Server(createRandomIp(), "netlink", "NetLink Technologies", false, false, false, 0);
|
||||||
NetLinkTechnologiesServer.init(createRandomIp(), "netlink", "NetLink Technologies", true, false, false, false, 0);
|
|
||||||
NetLinkTechnologiesServer.setHackingParameters(getRandomInt(375, 425), 275000000, getRandomInt(60, 80), getRandomInt(45, 75));
|
NetLinkTechnologiesServer.setHackingParameters(getRandomInt(375, 425), 275000000, getRandomInt(60, 80), getRandomInt(45, 75));
|
||||||
NetLinkTechnologiesServer.setPortProperties(3);
|
NetLinkTechnologiesServer.setPortProperties(3);
|
||||||
AddToAllServers(NetLinkTechnologiesServer);
|
AddToAllServers(NetLinkTechnologiesServer);
|
||||||
|
|
||||||
var JohnsonOrthopedicsServer = new Server();
|
var JohnsonOrthopedicsServer = new Server(createRandomIp(), "johnson-ortho", "Johnson Orthopedics", false, false, false, 4);
|
||||||
JohnsonOrthopedicsServer.init(createRandomIp(), "johnson-ortho", "Johnson Orthopedics", true, false, false, false, 4);
|
|
||||||
JohnsonOrthopedicsServer.setHackingParameters(getRandomInt(250, 300), getRandomInt(70000000, 85000000), getRandomInt(35, 65), getRandomInt(35, 65));
|
JohnsonOrthopedicsServer.setHackingParameters(getRandomInt(250, 300), getRandomInt(70000000, 85000000), getRandomInt(35, 65), getRandomInt(35, 65));
|
||||||
JohnsonOrthopedicsServer.setPortProperties(2);
|
JohnsonOrthopedicsServer.setPortProperties(2);
|
||||||
AddToAllServers(JohnsonOrthopedicsServer);
|
AddToAllServers(JohnsonOrthopedicsServer);
|
||||||
|
|
||||||
//"Low level" targets
|
//"Low level" targets
|
||||||
var FoodNStuffServer = new Server();
|
var FoodNStuffServer = new Server(createRandomIp(), "foodnstuff", "Food N Stuff Supermarket", false, false, false, 8);
|
||||||
FoodNStuffServer.init(createRandomIp(), "foodnstuff", "Food N Stuff Supermarket", true, false, false, false, 8);
|
|
||||||
FoodNStuffServer.setHackingParameters(1, 2000000, 10, 5);
|
FoodNStuffServer.setHackingParameters(1, 2000000, 10, 5);
|
||||||
FoodNStuffServer.setPortProperties(0);
|
FoodNStuffServer.setPortProperties(0);
|
||||||
AddToAllServers(FoodNStuffServer);
|
AddToAllServers(FoodNStuffServer);
|
||||||
|
|
||||||
var SigmaCosmeticsServer = new Server();
|
var SigmaCosmeticsServer = new Server(createRandomIp(), "sigma-cosmetics", "Sigma Cosmetics", false, false, false, 8);
|
||||||
SigmaCosmeticsServer.init(createRandomIp(), "sigma-cosmetics", "Sigma Cosmetics", true, false, false, false, 8);
|
|
||||||
SigmaCosmeticsServer.setHackingParameters(5, 2300000, 10, 10);
|
SigmaCosmeticsServer.setHackingParameters(5, 2300000, 10, 10);
|
||||||
SigmaCosmeticsServer.setPortProperties(0);
|
SigmaCosmeticsServer.setPortProperties(0);
|
||||||
AddToAllServers(SigmaCosmeticsServer);
|
AddToAllServers(SigmaCosmeticsServer);
|
||||||
|
|
||||||
var JoesGunsServer = new Server();
|
var JoesGunsServer = new Server(createRandomIp(), "joesguns", "Joe's Guns", false, false, false, 8);
|
||||||
JoesGunsServer.init(createRandomIp(), "joesguns", "Joe's Guns", true, false, false, false, 8);
|
|
||||||
JoesGunsServer.setHackingParameters(10, 2500000, 15, 20);
|
JoesGunsServer.setHackingParameters(10, 2500000, 15, 20);
|
||||||
JoesGunsServer.setPortProperties(0);
|
JoesGunsServer.setPortProperties(0);
|
||||||
AddToAllServers(JoesGunsServer);
|
AddToAllServers(JoesGunsServer);
|
||||||
|
|
||||||
var Zer0NightclubServer = new Server();
|
var Zer0NightclubServer = new Server(createRandomIp(), "zer0", "ZER0 Nightclub", false, false, false, 4);
|
||||||
Zer0NightclubServer.init(createRandomIp(), "zer0", "ZER0 Nightclub", true, false, false, false, 4);
|
|
||||||
Zer0NightclubServer.setHackingParameters(75, 7500000, 25, 40);
|
Zer0NightclubServer.setHackingParameters(75, 7500000, 25, 40);
|
||||||
Zer0NightclubServer.setPortProperties(1);
|
Zer0NightclubServer.setPortProperties(1);
|
||||||
AddToAllServers(Zer0NightclubServer);
|
AddToAllServers(Zer0NightclubServer);
|
||||||
|
|
||||||
var NectarNightclubServer = new Server();
|
var NectarNightclubServer = new Server(createRandomIp(), "nectar-net", "Nectar Nightclub Network", false, false, false, 8);
|
||||||
NectarNightclubServer.init(createRandomIp(), "nectar-net", "Nectar Nightclub Network", true, false, false, false, 8);
|
|
||||||
NectarNightclubServer.setHackingParameters(20, 2750000, 20, 25);
|
NectarNightclubServer.setHackingParameters(20, 2750000, 20, 25);
|
||||||
NectarNightclubServer.setPortProperties(0);
|
NectarNightclubServer.setPortProperties(0);
|
||||||
AddToAllServers(NectarNightclubServer);
|
AddToAllServers(NectarNightclubServer);
|
||||||
|
|
||||||
var NeoNightclubServer = new Server();
|
var NeoNightclubServer = new Server(createRandomIp(), "neo-net", "Neo Nightclub Network", false, false, false, 4);
|
||||||
NeoNightclubServer.init(createRandomIp(), "neo-net", "Neo Nightclub Network", true, false, false, false, 4);
|
|
||||||
NeoNightclubServer.setHackingParameters(50, 5000000, 25, 25);
|
NeoNightclubServer.setHackingParameters(50, 5000000, 25, 25);
|
||||||
NeoNightclubServer.setPortProperties(1);
|
NeoNightclubServer.setPortProperties(1);
|
||||||
AddToAllServers(NeoNightclubServer);
|
AddToAllServers(NeoNightclubServer);
|
||||||
|
|
||||||
var SilverHelixServer = new Server();
|
var SilverHelixServer = new Server(createRandomIp(), "silver-helix", "Silver Helix", false, false, false, 2);
|
||||||
SilverHelixServer.init(createRandomIp(), "silver-helix", "Silver Helix", true, false, false, false, 2);
|
|
||||||
SilverHelixServer.setHackingParameters(150, 45000000, 30, 30);
|
SilverHelixServer.setHackingParameters(150, 45000000, 30, 30);
|
||||||
SilverHelixServer.setPortProperties(2);
|
SilverHelixServer.setPortProperties(2);
|
||||||
AddToAllServers(SilverHelixServer);
|
AddToAllServers(SilverHelixServer);
|
||||||
|
|
||||||
var HongFangTeaHouseServer = new Server();
|
var HongFangTeaHouseServer = new Server(createRandomIp(), "hong-fang-tea", "HongFang Teahouse", false, false, false, 8);
|
||||||
HongFangTeaHouseServer.init(createRandomIp(), "hong-fang-tea", "HongFang Teahouse", true, false, false, false, 8);
|
|
||||||
HongFangTeaHouseServer.setHackingParameters(30, 3000000, 15, 20);
|
HongFangTeaHouseServer.setHackingParameters(30, 3000000, 15, 20);
|
||||||
HongFangTeaHouseServer.setPortProperties(0);
|
HongFangTeaHouseServer.setPortProperties(0);
|
||||||
AddToAllServers(HongFangTeaHouseServer);
|
AddToAllServers(HongFangTeaHouseServer);
|
||||||
|
|
||||||
var HaraKiriSushiBarServer = new Server();
|
var HaraKiriSushiBarServer = new Server(createRandomIp(), "harakiri-sushi", "HaraKiri Sushi Bar Network", false, false, false, 8);
|
||||||
HaraKiriSushiBarServer.init(createRandomIp(), "harakiri-sushi", "HaraKiri Sushi Bar Network", true, false, false, false, 8);
|
|
||||||
HaraKiriSushiBarServer.setHackingParameters(40, 4000000, 15, 40);
|
HaraKiriSushiBarServer.setHackingParameters(40, 4000000, 15, 40);
|
||||||
HaraKiriSushiBarServer.setPortProperties(0);
|
HaraKiriSushiBarServer.setPortProperties(0);
|
||||||
AddToAllServers(HaraKiriSushiBarServer);
|
AddToAllServers(HaraKiriSushiBarServer);
|
||||||
|
|
||||||
var PhantasyServer = new Server();
|
var PhantasyServer = new Server(createRandomIp(), "phantasy", "Phantasy Club", false, false, false, 0);
|
||||||
PhantasyServer.init(createRandomIp(), "phantasy", "Phantasy Club", true, false, false, false, 0);
|
|
||||||
PhantasyServer.setHackingParameters(100, 24000000, 20, 35);
|
PhantasyServer.setHackingParameters(100, 24000000, 20, 35);
|
||||||
PhantasyServer.setPortProperties(2);
|
PhantasyServer.setPortProperties(2);
|
||||||
AddToAllServers(PhantasyServer);
|
AddToAllServers(PhantasyServer);
|
||||||
|
|
||||||
var MaxHardwareServer = new Server();
|
var MaxHardwareServer = new Server(createRandomIp(), "max-hardware", "Max Hardware Store", false, false, false, 4);
|
||||||
MaxHardwareServer.init(createRandomIp(), "max-hardware", "Max Hardware Store", true, false, false, false, 4);
|
MaxHardwareServer.setHackingParameters(80, 10000000, 15, 30);
|
||||||
MaxHardwareServer.setHackingParameters(80, 10000000, 15, 25);
|
|
||||||
MaxHardwareServer.setPortProperties(1);
|
MaxHardwareServer.setPortProperties(1);
|
||||||
AddToAllServers(MaxHardwareServer);
|
AddToAllServers(MaxHardwareServer);
|
||||||
|
|
||||||
var OmegaSoftwareServer = new Server();
|
var OmegaSoftwareServer = new Server(createRandomIp(), "omega-net", "Omega Software", false, false, false, 8);
|
||||||
OmegaSoftwareServer.init(createRandomIp(), "omega-net", "Omega Software", true, false, false, false, 8);
|
|
||||||
OmegaSoftwareServer.setHackingParameters(getRandomInt(180, 220), getRandomInt(60000000, 70000000), getRandomInt(25, 35), getRandomInt(30, 40));
|
OmegaSoftwareServer.setHackingParameters(getRandomInt(180, 220), getRandomInt(60000000, 70000000), getRandomInt(25, 35), getRandomInt(30, 40));
|
||||||
OmegaSoftwareServer.setPortProperties(2);
|
OmegaSoftwareServer.setPortProperties(2);
|
||||||
AddToAllServers(OmegaSoftwareServer);
|
AddToAllServers(OmegaSoftwareServer);
|
||||||
|
|
||||||
//Gyms
|
//Gyms
|
||||||
var CrushFitnessGymServer = new Server();
|
var CrushFitnessGymServer = new Server(createRandomIp(), "crush-fitness", "Crush Fitness", false, false, false, 0);
|
||||||
CrushFitnessGymServer.init(createRandomIp(), "crush-fitness", "Crush Fitness", true, false, false, false, 0);
|
|
||||||
CrushFitnessGymServer.setHackingParameters(getRandomInt(225, 275), getRandomInt(40000000, 60000000), getRandomInt(35, 45), getRandomInt(27, 33));
|
CrushFitnessGymServer.setHackingParameters(getRandomInt(225, 275), getRandomInt(40000000, 60000000), getRandomInt(35, 45), getRandomInt(27, 33));
|
||||||
CrushFitnessGymServer.setPortProperties(2);
|
CrushFitnessGymServer.setPortProperties(2);
|
||||||
AddToAllServers(CrushFitnessGymServer);
|
AddToAllServers(CrushFitnessGymServer);
|
||||||
|
|
||||||
var IronGymServer = new Server();
|
var IronGymServer = new Server(createRandomIp(), "iron-gym", "Iron Gym Network", false, false, false, 4);
|
||||||
IronGymServer.init(createRandomIp(), "iron-gym", "Iron Gym Network", true, false, false, false, 4);
|
|
||||||
IronGymServer.setHackingParameters(100, 20000000, 30, 20);
|
IronGymServer.setHackingParameters(100, 20000000, 30, 20);
|
||||||
IronGymServer.setPortProperties(1);
|
IronGymServer.setPortProperties(1);
|
||||||
AddToAllServers(IronGymServer);
|
AddToAllServers(IronGymServer);
|
||||||
|
|
||||||
var MilleniumFitnessGymServer = new Server();
|
var MilleniumFitnessGymServer = new Server(createRandomIp(), "millenium-fitness", "Millenium Fitness Network", false, false, false, 0);
|
||||||
MilleniumFitnessGymServer.init(createRandomIp(), "millenium-fitness", "Millenium Fitness Network", true, false, false, false, 0);
|
|
||||||
MilleniumFitnessGymServer.setHackingParameters(getRandomInt(475, 525), 250000000, getRandomInt(45, 55), getRandomInt(25, 45));
|
MilleniumFitnessGymServer.setHackingParameters(getRandomInt(475, 525), 250000000, getRandomInt(45, 55), getRandomInt(25, 45));
|
||||||
MilleniumFitnessGymServer.setPortProperties(3);
|
MilleniumFitnessGymServer.setPortProperties(3);
|
||||||
AddToAllServers(MilleniumFitnessGymServer);
|
AddToAllServers(MilleniumFitnessGymServer);
|
||||||
|
|
||||||
var PowerhouseGymServer = new Server();
|
var PowerhouseGymServer = new Server(createRandomIp(), "powerhouse-fitness", "Powerhouse Fitness", false, false, false, 0);
|
||||||
PowerhouseGymServer.init(createRandomIp(), "powerhouse-fitness", "Powerhouse Fitness", true, false, false, false, 0);
|
|
||||||
PowerhouseGymServer.setHackingParameters(getRandomInt(950, 1100), 900000000, getRandomInt(55, 65), getRandomInt(50, 60));
|
PowerhouseGymServer.setHackingParameters(getRandomInt(950, 1100), 900000000, getRandomInt(55, 65), getRandomInt(50, 60));
|
||||||
PowerhouseGymServer.setPortProperties(5);
|
PowerhouseGymServer.setPortProperties(5);
|
||||||
AddToAllServers(PowerhouseGymServer);
|
AddToAllServers(PowerhouseGymServer);
|
||||||
|
|
||||||
var SnapFitnessGymServer = new Server();
|
var SnapFitnessGymServer = new Server(createRandomIp(), "snap-fitness", "Snap Fitness", false, false, false, 0);
|
||||||
SnapFitnessGymServer.init(createRandomIp(), "snap-fitness", "Snap Fitness", true, false, false, false, 0);
|
|
||||||
SnapFitnessGymServer.setHackingParameters(getRandomInt(675, 800), 450000000, getRandomInt(40, 60), getRandomInt(40, 60));
|
SnapFitnessGymServer.setHackingParameters(getRandomInt(675, 800), 450000000, getRandomInt(40, 60), getRandomInt(40, 60));
|
||||||
SnapFitnessGymServer.setPortProperties(4);
|
SnapFitnessGymServer.setPortProperties(4);
|
||||||
AddToAllServers(SnapFitnessGymServer);
|
AddToAllServers(SnapFitnessGymServer);
|
||||||
|
|
||||||
//Faction servers, cannot hack money from these
|
//Faction servers, cannot hack money from these
|
||||||
var BitRunnersServer = new Server();
|
var BitRunnersServer = new Server(createRandomIp(), "run4theh111z", "The Runners", false, false, false, 0);
|
||||||
BitRunnersServer.init(createRandomIp(), "run4theh111z", "The Runners", true, false, false, false, 0);
|
|
||||||
BitRunnersServer.setHackingParameters(getRandomInt(505, 550), 0, 0, 0);
|
BitRunnersServer.setHackingParameters(getRandomInt(505, 550), 0, 0, 0);
|
||||||
BitRunnersServer.setPortProperties(4);
|
BitRunnersServer.setPortProperties(4);
|
||||||
AddToAllServers(BitRunnersServer);
|
AddToAllServers(BitRunnersServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.BitRunnersServer, BitRunnersServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.BitRunnersServer, BitRunnersServer.ip);
|
||||||
|
|
||||||
var TheBlackHandServer = new Server();
|
var TheBlackHandServer = new Server(createRandomIp(), "I.I.I.I", "I.I.I.I", false, false, false, 0);
|
||||||
TheBlackHandServer.init(createRandomIp(), "I.I.I.I", "I.I.I.I", true, false, false, false, 0);
|
|
||||||
TheBlackHandServer.setHackingParameters(getRandomInt(340, 365), 0, 0, 0);
|
TheBlackHandServer.setHackingParameters(getRandomInt(340, 365), 0, 0, 0);
|
||||||
TheBlackHandServer.setPortProperties(3);
|
TheBlackHandServer.setPortProperties(3);
|
||||||
AddToAllServers(TheBlackHandServer);
|
AddToAllServers(TheBlackHandServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.TheBlackHandServer, TheBlackHandServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.TheBlackHandServer, TheBlackHandServer.ip);
|
||||||
|
|
||||||
var NiteSecServer = new Server();
|
var NiteSecServer = new Server(createRandomIp(), "avmnite-02h", "NiteSec", false, false, false, 0);
|
||||||
NiteSecServer.init(createRandomIp(), "avmnite-02h", "NiteSec", true, false, false, false, 0);
|
|
||||||
NiteSecServer.setHackingParameters(getRandomInt(202, 220), 0, 0, 0);
|
NiteSecServer.setHackingParameters(getRandomInt(202, 220), 0, 0, 0);
|
||||||
NiteSecServer.setPortProperties(2);
|
NiteSecServer.setPortProperties(2);
|
||||||
AddToAllServers(NiteSecServer);
|
AddToAllServers(NiteSecServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.NiteSecServer, NiteSecServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.NiteSecServer, NiteSecServer.ip);
|
||||||
|
|
||||||
var DarkArmyServer = new Server();
|
var DarkArmyServer = new Server(createRandomIp(), ".", ".", false, false, false, 0);
|
||||||
DarkArmyServer.init(createRandomIp(), ".", ".", true, false, false, false, 0);
|
|
||||||
DarkArmyServer.setHackingParameters(getRandomInt(505, 550), 0, 0, 0);
|
DarkArmyServer.setHackingParameters(getRandomInt(505, 550), 0, 0, 0);
|
||||||
DarkArmyServer.setPortProperties(4);
|
DarkArmyServer.setPortProperties(4);
|
||||||
AddToAllServers(DarkArmyServer);
|
AddToAllServers(DarkArmyServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.TheDarkArmyServer, DarkArmyServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.TheDarkArmyServer, DarkArmyServer.ip);
|
||||||
|
|
||||||
var CyberSecServer = new Server();
|
var CyberSecServer = new Server(createRandomIp(), "CSEC", "CyberSec", false, false, false, 0);
|
||||||
CyberSecServer.init(createRandomIp(), "CSEC", "CyberSec", true, false, false, false, 0);
|
|
||||||
CyberSecServer.setHackingParameters(getRandomInt(51, 60), 0, 0, 0);
|
CyberSecServer.setHackingParameters(getRandomInt(51, 60), 0, 0, 0);
|
||||||
CyberSecServer.setPortProperties(1);
|
CyberSecServer.setPortProperties(1);
|
||||||
AddToAllServers(CyberSecServer);
|
AddToAllServers(CyberSecServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.CyberSecServer, CyberSecServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.CyberSecServer, CyberSecServer.ip);
|
||||||
|
|
||||||
var DaedalusServer = new Server();
|
var DaedalusServer = new Server(createRandomIp(), "The-Cave", "Helios", false, false, false, 0);
|
||||||
DaedalusServer.init(createRandomIp(), "The-Cave", "Helios", true, false, false, false, 0);
|
|
||||||
DaedalusServer.setHackingParameters(925, 0, 0, 0);
|
DaedalusServer.setHackingParameters(925, 0, 0, 0);
|
||||||
DaedalusServer.setPortProperties(5);
|
DaedalusServer.setPortProperties(5);
|
||||||
AddToAllServers(DaedalusServer);
|
AddToAllServers(DaedalusServer);
|
||||||
SpecialServerIps.addIp(SpecialServerNames.DaedalusServer, DaedalusServer.ip);
|
SpecialServerIps.addIp(SpecialServerNames.DaedalusServer, DaedalusServer.ip);
|
||||||
|
|
||||||
//Super special Servers
|
//Super special Servers
|
||||||
var WorldDaemon = new Server();
|
var WorldDaemon = new Server(createRandomIp(), SpecialServerNames.WorldDaemon, SpecialServerNames.WorldDaemon, false, false, false, 0);
|
||||||
WorldDaemon.init(createRandomIp(), SpecialServerNames.WorldDaemon, SpecialServerNames.WorldDaemon, true, false, false, false, 0);
|
|
||||||
WorldDaemon.setHackingParameters(3000, 0, 0, 0);
|
WorldDaemon.setHackingParameters(3000, 0, 0, 0);
|
||||||
WorldDaemon.setPortProperties(5);
|
WorldDaemon.setPortProperties(5);
|
||||||
AddToAllServers(WorldDaemon);
|
AddToAllServers(WorldDaemon);
|
||||||
|
@ -17,7 +17,7 @@ purchaseServer = function(ram, cost) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var newServ = new Server();
|
|
||||||
var hostname = document.getElementById("purchase-server-box-input").value;
|
var hostname = document.getElementById("purchase-server-box-input").value;
|
||||||
hostname = hostname.replace(/\s\s+/g, '');
|
hostname = hostname.replace(/\s\s+/g, '');
|
||||||
if (hostname == "") {
|
if (hostname == "") {
|
||||||
@ -26,7 +26,7 @@ purchaseServer = function(ram, cost) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Create server
|
//Create server
|
||||||
newServ.init(createRandomIp(), hostname, "", true, false, true, true, ram);
|
var newServ = new Server(createRandomIp(), hostname, "", false, true, true, ram);
|
||||||
AddToAllServers(newServ);
|
AddToAllServers(newServ);
|
||||||
|
|
||||||
//Add to Player's purchasedServers array
|
//Add to Player's purchasedServers array
|
||||||
|
@ -83,7 +83,6 @@ var Engine = {
|
|||||||
deleteMainMenuButton: null,
|
deleteMainMenuButton: null,
|
||||||
|
|
||||||
//Tutorial buttons
|
//Tutorial buttons
|
||||||
tutorialGettingStartedButton: null,
|
|
||||||
tutorialNetworkingButton: null,
|
tutorialNetworkingButton: null,
|
||||||
tutorialHackingButton: null,
|
tutorialHackingButton: null,
|
||||||
tutorialScriptsButton: null,
|
tutorialScriptsButton: null,
|
||||||
@ -623,7 +622,7 @@ var Engine = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
displayTutorialContent: function() {
|
displayTutorialContent: function() {
|
||||||
Engine.Clickables.tutorialGettingStartedButton.style.display = "block";
|
document.getElementById("tutorial-getting-started-link").style.display = "block";
|
||||||
Engine.Clickables.tutorialNetworkingButton.style.display = "block";
|
Engine.Clickables.tutorialNetworkingButton.style.display = "block";
|
||||||
Engine.Clickables.tutorialHackingButton.style.display = "block";
|
Engine.Clickables.tutorialHackingButton.style.display = "block";
|
||||||
Engine.Clickables.tutorialScriptsButton.style.display = "block";
|
Engine.Clickables.tutorialScriptsButton.style.display = "block";
|
||||||
@ -640,7 +639,6 @@ var Engine = {
|
|||||||
|
|
||||||
//Displays the text when a section of the Tutorial is opened
|
//Displays the text when a section of the Tutorial is opened
|
||||||
displayTutorialPage: function(text) {
|
displayTutorialPage: function(text) {
|
||||||
Engine.Clickables.tutorialGettingStartedButton.style.display = "none";
|
|
||||||
Engine.Clickables.tutorialNetworkingButton.style.display = "none";
|
Engine.Clickables.tutorialNetworkingButton.style.display = "none";
|
||||||
Engine.Clickables.tutorialHackingButton.style.display = "none";
|
Engine.Clickables.tutorialHackingButton.style.display = "none";
|
||||||
Engine.Clickables.tutorialScriptsButton.style.display = "none";
|
Engine.Clickables.tutorialScriptsButton.style.display = "none";
|
||||||
@ -1153,11 +1151,6 @@ var Engine = {
|
|||||||
Engine.Display.scriptEditorText = document.getElementById("script-editor-text");
|
Engine.Display.scriptEditorText = document.getElementById("script-editor-text");
|
||||||
|
|
||||||
//Tutorial buttons
|
//Tutorial buttons
|
||||||
Engine.Clickables.tutorialGettingStartedButton = document.getElementById("tutorial-getting-started-link");
|
|
||||||
Engine.Clickables.tutorialGettingStartedButton.addEventListener("click", function() {
|
|
||||||
Engine.displayTutorialPage(CONSTANTS.TutorialGettingStartedText);
|
|
||||||
});
|
|
||||||
|
|
||||||
Engine.Clickables.tutorialNetworkingButton = document.getElementById("tutorial-networking-link");
|
Engine.Clickables.tutorialNetworkingButton = document.getElementById("tutorial-networking-link");
|
||||||
Engine.Clickables.tutorialNetworkingButton.addEventListener("click", function() {
|
Engine.Clickables.tutorialNetworkingButton.addEventListener("click", function() {
|
||||||
Engine.displayTutorialPage(CONSTANTS.TutorialNetworkingText);
|
Engine.displayTutorialPage(CONSTANTS.TutorialNetworkingText);
|
||||||
|
Loading…
Reference in New Issue
Block a user