Buffed crimes and hacking. Increased growth rate of servers. Added getHostanme command. Added preventDefault() for ctrl+b in script editor. Buffed Neuroflux Governor, which adds 1% to all multipliers, and made it more expensive. Nerfed Hacknet Node base production. Fixed nested for loop issue

This commit is contained in:
Daniel Xie
2017-05-29 17:37:38 -05:00
parent a453d96d50
commit af47baf4fa
14 changed files with 180 additions and 85 deletions
+3 -5
View File
@@ -151,14 +151,14 @@ function Parser(input) {
* code: prog node
*/
function parse_for() {
console.log("Parsing for token");
checkKeywordAndSkip("for");
splitExpressions = delimited("(", ")", ";", parse_expression);
temp = delimited("(", ")", ";", parse_expression);
var splitExpressions = temp.slice();
code = parse_expression();
if (splitExpressions.length != 3) {
throw new Error("for statement has incorrect number of arugments");
throw new Error("for statement has incorrect number of arguments");
}
//TODO Check type of the init, cond, and postloop nodes
@@ -196,7 +196,6 @@ function Parser(input) {
if (is_punc("[")) {
index = parse_expression();
if (index.type != "index") {
console.log("Failed here");
unexpected();
}
}
@@ -214,7 +213,6 @@ function Parser(input) {
op: op,
}
}
console.log("Failed here");
unexpected();
}