Bugfixes for cancelOrder(), selling stocks for Corporation, and updating RAM usage on prestige. Also added in-game documentation for clear() and exit()

This commit is contained in:
danielyxie
2017-12-10 23:04:00 -06:00
parent 3f61ec1cab
commit d5bd1665d0
6 changed files with 432 additions and 411 deletions
+2 -2
View File
@@ -1033,7 +1033,7 @@ function NetscriptFunctions(workerScript) {
} else if (type.includes("stop") && type.includes("buy")) {
orderType = OrderTypes.StopBuy;
} else if (type.includes("stop") && type.includes("sell")) {
orderType = OrderType.StopSell;
orderType = OrderTypes.StopSell;
} else {
throw makeRuntimeRejectMsg(workerScript, "ERROR: Invalid Order Type passed into placeOrder()");
}
@@ -1046,7 +1046,7 @@ function NetscriptFunctions(workerScript) {
} else {
throw makeRuntimeRejectMsg(workerScript, "ERROR: Invalid Position Type passed into placeOrder()");
}
params = {
var params = {
stock: stock,
shares: shares,
price: price,