Added hacknet node api functions for spending hashes. Fixed several bugs with v0.46.0. Rebalanced hash upgrades. continued working on terminal directory implementation

This commit is contained in:
danielyxie
2019-04-05 02:08:41 -07:00
parent fb857642e8
commit 3241945452
30 changed files with 576 additions and 314 deletions

View File

@@ -1631,9 +1631,8 @@ export function applyForJob(entryPosType, sing=false) {
document.getElementById("world-menu-header").click();
if (sing) { return true; }
dialogBoxCreate("Congratulations! You were offered a new job at " + this.companyName + " as a " + pos.name + "!");
Engine.loadLocationContent(false);
dialogBoxCreate("Congratulations! You were offered a new job at " + this.companyName + " as a " + pos.name + "!");
}
//Returns your next position at a company given the field (software, business, etc.)
@@ -1734,7 +1733,6 @@ export function applyForEmployeeJob(sing=false) {
document.getElementById("world-menu-header").click();
if (sing) {return true;}
dialogBoxCreate("Congratulations, you are now employed at " + this.companyName);
Engine.loadLocationContent(false);
} else {
if (sing) {return false;}
dialogBoxCreate("Unforunately, you do not qualify for this position");
@@ -1750,7 +1748,6 @@ export function applyForPartTimeEmployeeJob(sing=false) {
document.getElementById("world-menu-header").click();
if (sing) {return true;}
dialogBoxCreate("Congratulations, you are now employed part-time at " + this.companyName);
Engine.loadLocationContent(false);
} else {
if (sing) {return false;}
dialogBoxCreate("Unforunately, you do not qualify for this position");
@@ -1766,7 +1763,6 @@ export function applyForWaiterJob(sing=false) {
document.getElementById("world-menu-header").click();
if (sing) {return true;}
dialogBoxCreate("Congratulations, you are now employed as a waiter at " + this.companyName);
Engine.loadLocationContent(false);
} else {
if (sing) {return false;}
dialogBoxCreate("Unforunately, you do not qualify for this position");
@@ -1782,7 +1778,6 @@ export function applyForPartTimeWaiterJob(sing=false) {
document.getElementById("world-menu-header").click();
if (sing) {return true;}
dialogBoxCreate("Congratulations, you are now employed as a part-time waiter at " + this.companyName);
Engine.loadLocationContent(false);
} else {
if (sing) {return false;}
dialogBoxCreate("Unforunately, you do not qualify for this position");