diff --git a/src/Constants.js b/src/Constants.js index 81bf25d23..8ee2175db 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -273,12 +273,12 @@ CONSTANTS = { "This while loop above is an infinite loop (continuously runs until the script is manually stopped) that repeatedly runs the 'hack('foodnstuff')' command. " + "Note that a semicolon is needed at closing bracket of the while loop, UNLESS it is at the end of the code

" + "

For loops


" + - "A for loop is another control flow statement that allows code to by repeated by iterations. The structure is:

" + + "A for loop is another control flow statement that allows code to be repeated by iterations. The structure is:

" + "for ([init]; [cond]; [post]) {
    code
};


" + "The [init] expression evaluates before the for loop begins. The for loop will continue to execute " + "as long as [cond] is met. The [post] expression will evaluate at the end of every iteration " + - "of the for loop. The following example shows code that will do the same thing as the while loop example above, " + - "except using a for loop instead:

" + + "of the for loop. The following example shows code that will run the 'hack('foodnstuff');' command 10 times " + + " using a for loop:

" + "for (i = 0; i < 10; i = i+1) {
    hack('foodnstuff');
};


" + "

If statements


" + "If/Elif/Else statements are conditional statements used to perform different actions based on different conditions:

" + @@ -322,8 +322,10 @@ CONSTANTS = { "your stats. Different positions value different stats. When you are working, you are unable to perform any " + "other actions such as using your terminal or visiting other locations (However, note that any scripts you have " + "running on servers will continue to run as you work!). It is possible to cancel your work shift before the " + - "8 hours is up, but doing so will result in you gaining only half of all of the money, experience, and reputation " + - "that you had earned up to that point.

" + + "8 hours is up. However, if you have a full-time job, then cancelling a shift early will result in you gaining " + + "only half of all of the money, experience, and reputation " + + "that you had earned up to that point. There are also part-time/consultant jobs available where you will not " + + " be penalized if you cancel a work shift early. However, these positions pay less than full-time positions.

" + "As you continue to work at a company, you will gain more and more reputation at that company. When your stats " + "and reputation are high enough, you can get a promotion. You can apply for a promotion on the company page, just like " + "you applied for the job originally. Higher positions at a company provide better salaries and stat gains.", diff --git a/src/Player.js b/src/Player.js index cbcda55ef..c8c734a0d 100644 --- a/src/Player.js +++ b/src/Player.js @@ -585,7 +585,7 @@ PlayerObject.prototype.finishWorkPartTime = function() { formatNumber(this.workDexExpGained, 4) + " dexterity exp
" + formatNumber(this.workAgiExpGained, 4) + " agility exp
" + formatNumber(this.workChaExpGained, 4) + " charisma exp
"; - txt = "You worked for " + convertTimeMsToTimeElapsedString(this.timeWorked) + ".

" + txt; + txt = "You worked for " + convertTimeMsToTimeElapsedString(this.timeWorked) + "

" + txt; dialogBoxCreate(txt); var mainMenu = document.getElementById("mainmenu-container"); diff --git a/src/Server.js b/src/Server.js index 165765dee..c1ed2b985 100644 --- a/src/Server.js +++ b/src/Server.js @@ -452,7 +452,7 @@ initForeignServers = function() { var HaraKiriSushiBarServer = new Server(); HaraKiriSushiBarServer.setHackingParameters(40, 2000000, 15, 40); HaraKiriSushiBarServer.init(createRandomIp(), "harakiri-sushi", "HaraKiri Sushi Bar Network", true, false, false, false, 4); - HaraKiriSushiBarServer.setPortProperties(1); + HaraKiriSushiBarServer.setPortProperties(0); AddToAllServers(HaraKiriSushiBarServer); var PhantasyServer = new Server();