Added functions to create a random network with foreign servers

This commit is contained in:
Daniel Xie
2016-10-24 01:34:04 -05:00
parent 0b7f19fd8c
commit 4ea83fa199
4 changed files with 338 additions and 194 deletions
+6 -1
View File
@@ -53,7 +53,12 @@ var Player = {
init: function() {
Player.homeComputer.init("19.42.93.219", "home", "Home PC", true, true, true, true, 1);
Player.currentServer = Player.homeComputer;
}
var NetworkGroup1 = [ForeignServers.IronGym, ForeignServers.FoodNStuff, ForeignServers.SigmaCosmetics, ForeignServers.JoesGuns, ForeignServers.HongFangTeaHouse, ForeignServers.HaraKiriSushiBar];
for (var i = 0; i < NetworkGroup1.length; i++) {
Player.homeComputer.serversOnNetwork.push(NetworkGroup1[i]);
}
},
//Calculates hacking skill based on experience
// At the maximum possible exp (MAX_INT = 9007199254740991), the hacking skill will by 1796