diff --git a/css/popupboxes.css b/css/popupboxes.css index 4cb5d64cd..97081d669 100644 --- a/css/popupboxes.css +++ b/css/popupboxes.css @@ -16,7 +16,6 @@ display: block; position: absolute; z-index: 2; - /*margin: auto;*/ width: 50%; height: auto; top: 50%; diff --git a/index.html b/index.html index 00294ca47..4d087a810 100644 --- a/index.html +++ b/index.html @@ -743,6 +743,7 @@ ×

Game Options


+ Changelog Save Game Delete Game diff --git a/src/Constants.js b/src/Constants.js index 1de9a93c6..981f050e3 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -1,5 +1,5 @@ CONSTANTS = { - Version: "0.19.6", + Version: "0.19.7", //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 @@ -299,12 +299,14 @@ CONSTANTS = { "You can NOT define you own functions in Netscript (yet), but there are several built in functions that " + "you may use:

" + "hack(hostname/ip)
Core function that is used to try and hack servers to steal money and gain hacking experience. The argument passed in must be a string with " + - "either the IP or hostname of the server you want to hack. A script can hack a server from anywhere. It does not need to be running on the same server to hack that server. " + + "either the IP or hostname of the server you want to hack. The runtime for this command depends on your hacking level and the target server's security level. " + + " A script can hack a server from anywhere. It does not need to be running on the same server to hack that server. " + "For example, you can create a script that hacks the 'foodnstuff' server and run it on your home computer.
" + "Examples: hack('foodnstuff'); or hack('148.192.0.12');

" + "sleep(n)
Suspends the script for n milliseconds.
Example: sleep(5000);

" + "grow(hostname/ip)
Use your hacking skills to increase the amount of money available on a server. The argument passed in " + - "must be a string with either the IP or hostname of the target server. The grow() command requires root access to the target server, but " + + "must be a string with either the IP or hostname of the target server. The runtime for this command depends on your hacking level and the target server's security level. " + + "The grow() command requires root access to the target server, but " + "there is no required hacking level to run the command. " + "Grants 1 hacking exp when it completes. Works offline at a slower rate.
Example: grow('foodnstuff');

" + "weaken(hostname/ip)
Use your hacking skills to attack a server's security, lowering the server's security level. The argument passed " + @@ -563,7 +565,10 @@ CONSTANTS = { "-scp() command in Terminal/script will now overwrite files at the destination
" + "-Terminal commands are no longer case-sensitive (only the commands themselves such as 'run' or 'nano'. Filenames are " + "still case sensitive
" + - "-Tab automcompletion will now work on commands", + "-Tab automcompletion will now work on commands

" + + "v0.19.7
" + + "-Added changelog to Options menu
" + + "-Bug fix with autocompletion (wasn't working properly for capitalized filenames/programs", } \ No newline at end of file diff --git a/src/Terminal.js b/src/Terminal.js index 9a1ae5db4..5a35e0188 100644 --- a/src/Terminal.js +++ b/src/Terminal.js @@ -169,7 +169,6 @@ function tabCompletion(command, arg, allPossibilities, index=0) { if (!containsAllStrings(allPossibilities)) {return;} command = command.toLowerCase(); - arg = arg.toLowerCase(); if (arg == "") { for (var i = allPossibilities.length-1; i >= 0; --i) { @@ -358,6 +357,7 @@ var Terminal = { finishAnalyze: function(cancelled = false) { if (cancelled == false) { post(Player.getCurrentServer().hostname + ": "); + post("Organization name: " + Player.getCurrentServer().organizationName); var rootAccess = ""; if (Player.getCurrentServer().hasAdminRights) {rootAccess = "YES";} else {rootAccess = "NO";} diff --git a/src/engine.js b/src/engine.js index ed41ddff2..7fe9248a7 100644 --- a/src/engine.js +++ b/src/engine.js @@ -1099,6 +1099,13 @@ var Engine = { document.getElementById("world-menu-link").removeAttribute("class"); document.getElementById("tutorial-menu-link").removeAttribute("class"); + //Changelog + document.getElementById("changelog-link").addEventListener("click", function() { + gameOptionsBoxClose(); + dialogBoxCreate(CONSTANTS.Changelog); + return false; + }); + //DEBUG Delete active Scripts on home document.getElementById("debug-delete-scripts-link").addEventListener("click", function() { console.log("Deleting running scripts on home computer");