mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
Fixed bug with Corporaiton healthcare. Fixed bug with new netscript 1.0 JS Interpreter properly throwing errors
This commit is contained in:
parent
2b38a8cd2a
commit
c449dee97e
8002
dist/engine.bundle.js
vendored
8002
dist/engine.bundle.js
vendored
File diff suppressed because it is too large
Load Diff
517
dist/vendor.bundle.js
vendored
517
dist/vendor.bundle.js
vendored
File diff suppressed because it is too large
Load Diff
@ -873,7 +873,7 @@ Industry.prototype.getProductDescriptionText = function() {
|
||||
case Industries.Software:
|
||||
return "develop computer software";
|
||||
break;
|
||||
case Industries.HealthCare:
|
||||
case Industries.Healthcare:
|
||||
return "build and manage hospitals";
|
||||
break;
|
||||
case Industries.RealEstate:
|
||||
@ -4233,7 +4233,7 @@ Corporation.prototype.displayDivisionContent = function(division, city) {
|
||||
createProductButtonText = "Develop Software";
|
||||
createProductPopupText = "Develop a new piece of software!";
|
||||
break;
|
||||
case Industries.HealthCare:
|
||||
case Industries.Healthcare:
|
||||
createProductButtonText = "Build Hospital";
|
||||
createProductPopupText = "Build and manage a new hospital!";
|
||||
break;
|
||||
@ -4924,4 +4924,3 @@ Corporation.fromJSON = function(value) {
|
||||
Reviver.constructors.Corporation = Corporation;
|
||||
|
||||
export {Corporation};
|
||||
|
||||
|
@ -228,20 +228,20 @@ function startNetscript1Script(workerScript) {
|
||||
resolve(workerScript);
|
||||
}
|
||||
} catch(e) {
|
||||
if (isString(e)) {
|
||||
workerScript.errorMessage = e;
|
||||
return reject(workerScript);
|
||||
} else if (e instanceof WorkerScript) {
|
||||
return reject(e);
|
||||
} else {
|
||||
return reject(workerScript);
|
||||
e = e.toString();
|
||||
if (!isScriptErrorMessage(e)) {
|
||||
e = makeRuntimeRejectMsg(workerScript, e);
|
||||
}
|
||||
workerScript.errorMessage = e;
|
||||
return reject(workerScript);
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
runInterpreter();
|
||||
} catch(e) {
|
||||
console.log("Caught in original");
|
||||
console.log(e);
|
||||
if (isString(e)) {
|
||||
workerScript.errorMessage = e;
|
||||
return reject(workerScript);
|
||||
|
Loading…
Reference in New Issue
Block a user