Merge pull request #40 from danielyxie/dev

Dev v0.19.2
This commit is contained in:
danielyxie 2017-06-02 11:50:08 -05:00 committed by GitHub
commit a41eab73fb
4 changed files with 15 additions and 5 deletions

@ -652,7 +652,7 @@ initAugmentations = function() {
AddToAugmentations(NeuralAccelerator); AddToAugmentations(NeuralAccelerator);
var CranialSignalProcessorsG1 = new Augmentation(AugmentationNames.CranialSignalProcessorsG1); var CranialSignalProcessorsG1 = new Augmentation(AugmentationNames.CranialSignalProcessorsG1);
CranialSignalProcessorsG1.setRequirements(4000, 16000000); CranialSignalProcessorsG1.setRequirements(4000, 14000000);
CranialSignalProcessorsG1.setInfo("The first generation of Cranial Signal Processors. Cranial Signal Processors " + CranialSignalProcessorsG1.setInfo("The first generation of Cranial Signal Processors. Cranial Signal Processors " +
"are a set of specialized microprocessors that are attached to " + "are a set of specialized microprocessors that are attached to " +
"neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations " + "neurons in the brain. These chips process neural signals to quickly and automatically perform specific computations " +

@ -1,5 +1,5 @@
CONSTANTS = { CONSTANTS = {
Version: "0.19.1", Version: "0.19.2",
//Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience //Max level for any skill, assuming no multipliers. Determined by max numerical value in javascript for experience
//and the skill level formula in Player.js. Note that all this means it that when experience hits MAX_INT, then //and the skill level formula in Player.js. Note that all this means it that when experience hits MAX_INT, then
@ -232,7 +232,15 @@ CONSTANTS = {
TutorialScriptsText: "Scripts can be used to automate the hacking process. Scripts must be written in the Netscript language. " + TutorialScriptsText: "Scripts can be used to automate the hacking process. Scripts must be written in the Netscript language. " +
"Documentation about the Netscript language can be found in the 'Netscript Programming Language' " + "Documentation about the Netscript language can be found in the 'Netscript Programming Language' " +
"section of this 'Tutorial' page. <br><br>Running a script requires RAM. The more complex a script is, the more RAM " + "section of this 'Tutorial' page. <br><br> " +
"<strong>It is highly recommended that you have a basic background in programming to start writing scripts. " +
"You by no means need to be an expert. All you need is some familiarity with basic programming " +
"constructs like for/while loops, if statements, " +
"functions, variables, etc. The Netscript programming language most resembles the Javascript language. " +
"Therefore, a good beginner's programming tutorial to read might <a href='https://www.w3schools.com/js/default.asp'>" +
"this one</a>. Note that while the Netscript language is similar to Javascript, it is not the exact same, so the " +
"syntax will vary. </strong> <br><br>" +
"Running a script requires RAM. The more complex a script is, the more RAM " +
"it requires to run. Scripts can be run on any server you have root access to. <br><br>" + "it requires to run. Scripts can be run on any server you have root access to. <br><br>" +
"Here are some Terminal commands that are useful when working with scripts: <br>" + "Here are some Terminal commands that are useful when working with scripts: <br>" +
"free - Shows the current server's RAM usage and availability <br>" + "free - Shows the current server's RAM usage and availability <br>" +

@ -242,7 +242,7 @@ function iTutorialEvaluateStep() {
"it out after this tutorial. </strong> For now, just copy " + "it out after this tutorial. </strong> For now, just copy " +
"and paste the following code into the script editor: <br><br>" + "and paste the following code into the script editor: <br><br>" +
"while(true) { <br>" + "while(true) { <br>" +
"hack('foodnstuff'); <br>" + "&nbsp;&nbsp;hack('foodnstuff'); <br>" +
"}<br><br> " + "}<br><br> " +
"For anyone with basic programming experience, this code should be straightforward. " + "For anyone with basic programming experience, this code should be straightforward. " +
"This script will continuously hack the 'foodnstuff' server. <br><br>" + "This script will continuously hack the 'foodnstuff' server. <br><br>" +
@ -351,7 +351,7 @@ function iTutorialEvaluateStep() {
break; break;
case iTutorialSteps.WorldDescription: case iTutorialSteps.WorldDescription:
iTutorialSetText("This page lists all of the different locations you can currently " + iTutorialSetText("This page lists all of the different locations you can currently " +
"travel to. Each location has something that can you do. " + "travel to. Each location has something that you can do. " +
"There's a lot of content out in the world, make sure " + "There's a lot of content out in the world, make sure " +
"you explore and discover!<br><br>" + "you explore and discover!<br><br>" +
"Lastly, click on the 'Tutorial' link in the main navigation menu."); "Lastly, click on the 'Tutorial' link in the main navigation menu.");

@ -158,6 +158,8 @@ function prestigeAugmentation() {
var s = homeComp.scripts[i]; var s = homeComp.scripts[i];
s.reset(); s.reset();
} }
//Delete messages on home computer
homeComp.messages.length = 0;
//Delete active scripts display elements //Delete active scripts display elements
var list = Engine.ActiveScriptsList.querySelectorAll('#active-scripts-list li'); var list = Engine.ActiveScriptsList.querySelectorAll('#active-scripts-list li');