diff --git a/dist/bundle.js b/dist/bundle.js
index 0cd60230f..fe86fb2a3 100644
--- a/dist/bundle.js
+++ b/dist/bundle.js
@@ -1343,7 +1343,7 @@ PlayerObject.prototype.startClass = function(costMult, expMult, className) {
agiExp = baseGymExp * expMult / gameCPS;
break;
default:
- throw new Error("ERR: Invalid/recognized class name");
+ throw new Error("ERR: Invalid/unrecognized class name");
return;
}
@@ -3333,6 +3333,7 @@ let CONSTANTS = {
LatestUpdate:
"v0.28.4
" +
"-Added getScriptIncome() Netscript function
" +
+ "-Added Javascript's Math module to Netscript. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math
" +
"-Added several member variables for the Hacknet Node API that allow you to access info about their income
" +
"-All valid Netscript functions are now syntax highlighted as keywords in the editor. This means they will a different " +
"color than invalid netscript functions. The color will depend on your theme. " +
@@ -34860,6 +34861,7 @@ function initSingularitySFFlags() {
function NetscriptFunctions(workerScript) {
return {
+ Math : Math,
hacknetnodes : __WEBPACK_IMPORTED_MODULE_11__Player_js__["a" /* Player */].hacknetNodes,
scan : function(ip=workerScript.serverIp){
var server = Object(__WEBPACK_IMPORTED_MODULE_13__Server_js__["e" /* getServer */])(ip);
diff --git a/src/Constants.js b/src/Constants.js
index d153b22fd..3352ef8b8 100644
--- a/src/Constants.js
+++ b/src/Constants.js
@@ -877,6 +877,7 @@ let CONSTANTS = {
LatestUpdate:
"v0.28.4
" +
"-Added getScriptIncome() Netscript function
" +
+ "-Added Javascript's Math module to Netscript. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math
" +
"-Added several member variables for the Hacknet Node API that allow you to access info about their income
" +
"-All valid Netscript functions are now syntax highlighted as keywords in the editor. This means they will a different " +
"color than invalid netscript functions. The color will depend on your theme. " +
diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js
index 55cc22359..e087757fe 100644
--- a/src/NetscriptFunctions.js
+++ b/src/NetscriptFunctions.js
@@ -55,6 +55,7 @@ function initSingularitySFFlags() {
function NetscriptFunctions(workerScript) {
return {
+ Math : Math,
hacknetnodes : Player.hacknetNodes,
scan : function(ip=workerScript.serverIp){
var server = getServer(ip);
diff --git a/src/Player.js b/src/Player.js
index 6db4ea842..4dbcca717 100644
--- a/src/Player.js
+++ b/src/Player.js
@@ -1256,7 +1256,7 @@ PlayerObject.prototype.startClass = function(costMult, expMult, className) {
agiExp = baseGymExp * expMult / gameCPS;
break;
default:
- throw new Error("ERR: Invalid/recognized class name");
+ throw new Error("ERR: Invalid/unrecognized class name");
return;
}