Gang bugfixes and rebalancing. Terminal ls | grep option. Added Netscript break statement. Used numeraljs to display some number values

This commit is contained in:
danielyxie
2017-08-15 15:22:46 -05:00
parent 3db6d9d007
commit f100e559af
14 changed files with 564 additions and 416 deletions
+2 -4
View File
@@ -9,7 +9,7 @@ purchaseServer = function(ram, cost) {
return;
}
//Maximum of 30 servers
//Maximum server limit
if (Player.purchasedServers.length >= CONSTANTS.PurchasedServerLimit) {
dialogBoxCreate("You have reached the maximum limit of " + CONSTANTS.PurchasedServerLimit + " servers. " +
"You cannot purchase any more. You can " +
@@ -17,9 +17,7 @@ purchaseServer = function(ram, cost) {
return;
}
var hostname = document.getElementById("purchase-server-box-input").value;
hostname = hostname.replace(/\s\s+/g, '');
var hostname = yesNoTxtInpBoxGetInput();
if (hostname == "") {
dialogBoxCreate("You must enter a hostname for your new server!");
return;