From 70e52553dd79cd53668e21581845b5149dbddcac Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Wed, 31 May 2017 21:19:14 -0500 Subject: [PATCH 1/2] Remove good augmentation from CyberSec. Created The Black Hand Server --- src/Augmentations.js | 2 +- src/Server.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Augmentations.js b/src/Augmentations.js index e600535e62..7f2ca824a6 100644 --- a/src/Augmentations.js +++ b/src/Augmentations.js @@ -497,7 +497,7 @@ initAugmentations = function() { NeuralRetentionEnhancement.setInfo("Chemical injections are used to permanently alter and strengthen the brain's neuronal " + "circuits, strengthening its ability to retain information.

" + "This augmentation increases the player's hacking experience gain rate by 40%."); - NeuralRetentionEnhancement.addToFactions(["CyberSec", "NiteSec"]); + NeuralRetentionEnhancement.addToFactions(["NiteSec"]); if (augmentationExists(AugmentationNames.NeuralRetentionEnhancement)) { NeuralRetentionEnhancement.owned = Augmentations[AugmentationNames.NeuralRetentionEnhancement].owned; delete Augmentations[AugmentationNames.NeuralRetentionEnhancement]; diff --git a/src/Server.js b/src/Server.js index 48aaa0a909..35922c3f42 100644 --- a/src/Server.js +++ b/src/Server.js @@ -520,6 +520,11 @@ initForeignServers = function() { BitRunnersServer.init(createRandomIp(), "run4theh111z", "The Runners", true, false, false, false, 0); BitRunnersServer.setPortProperties(4); AddToAllServers(BitRunnersServer); + + var TheBlackHandServer = new Server(); + TheBlackHandServer.init(createRandomIp(), "I.I.I.I", "I.I.I.I", true, false, false, false, false, 0); + TheBlackHandServer.setPortProperties(3); + AddToAllServers(TheBlackHandServer); var NiteSecServer = new Server(); NiteSecServer.init(createRandomIp(), "avmnite-02h", "NiteSec", true, false, false, false, 0); From b53abeb280feb3a96009522ab92ec1113aa435ce Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Wed, 31 May 2017 23:17:50 -0500 Subject: [PATCH 2/2] Refactored Dialog boxes so that an infinite amount can be opened --- css/popupboxes.css | 45 +++++++++++++++----- index.html | 16 +------ src/CompanyJobApplication.js | 9 ++-- src/Constants.js | 2 +- src/Location.js | 2 +- src/NetscriptWorker.js | 6 +-- src/Script.js | 57 ++++++++++++++++++++++--- utils/DialogBox.js | 82 ++++++++++++++++++------------------ 8 files changed, 139 insertions(+), 80 deletions(-) diff --git a/css/popupboxes.css b/css/popupboxes.css index 525de4c1f7..61035e963f 100644 --- a/css/popupboxes.css +++ b/css/popupboxes.css @@ -12,20 +12,43 @@ background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ } -#dialog-box-content { - z-index: 1; +/* +.dialog-box-container { + display: block; + position: relative; + z-index: 2; + margin: auto; + width: 50%; + height: 100%; + vertical-align: middle; + overflow: auto; background-color: black; - margin: 20% auto; /* 20% from the top and centered */ - padding: 10px; - border: 5px solid #FFFFFF; - width: 40%; /* Could be more or less, depending on screen size */ + background-color: rgba(0,0,0,0.4); +} +*/ +.dialog-box-container { + display: block; + position: absolute; + z-index: 2; + /*margin: auto;*/ + width: 50%; + height: auto; + top: 50%; + left: 50%; + margin: -10% 0 0 -25%; + overflow: auto; + background-color: black; + background-color: rgba(0,0,0,0.4); } -.dialog-box-text { - color: #66ff33; +.dialog-box-content { + z-index: 2; + background-color: black; + padding: 10px; + border: 5px solid #FFFFFF; } -#dialog-box-close-button { +.dialog-box-close-button { color: #aaa; float: right; font-size: 20px; @@ -38,8 +61,8 @@ box-shadow: 1px 1px 3px #000; } -#dialog-box-close-button:hover, -#dialog-box-close-button:focus { +.dialog-box-close-button:hover, +.dialog-box-close-button:focus { color: white; text-decoration: none; cursor: pointer; diff --git a/index.html b/index.html index 6a076d6d03..b548e2270b 100644 --- a/index.html +++ b/index.html @@ -642,21 +642,7 @@

Assassinate Heist - - - - +