diff --git a/css/styles.css b/css/styles.css index b30d7b145..9975f581e 100644 --- a/css/styles.css +++ b/css/styles.css @@ -29,6 +29,11 @@ li { list-style-type: none; } +span { + margin: 4px; + padding: 4px; +} + /* Main menu */ .mainmenu { diff --git a/index.html b/index.html index e9201234c..cfef7f465 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - Netburner + Bitburner diff --git a/src/CompanyJobApplication.js b/src/CompanyJobApplication.js index e8e12021a..437a39f99 100644 --- a/src/CompanyJobApplication.js +++ b/src/CompanyJobApplication.js @@ -20,7 +20,7 @@ PlayerObject.prototype.applyForJob = function(entryPosType) { var pos = entryPosType; if (!this.isQualified(company, pos)) { - dialogBoxCreate("You are not qualified for this position"); + dialogBoxCreate("Unforunately, you do not qualify for this position"); return; } @@ -59,8 +59,12 @@ PlayerObject.prototype.applyForJob = function(entryPosType) { //Lose reputation from a Company if you are leaving it for another job + var leaveCompany = false; + var oldCompanyName = ""; if (currCompany != "") { if (currCompany.companyName != company.companyName) { + leaveCompany = true; + oldCompanyName = currCompany.companyName; company.playerReputation -= 1000; if (company.playerReputation < 0) {company.playerReputation = 0;} if (Engine.debug) { @@ -73,7 +77,13 @@ PlayerObject.prototype.applyForJob = function(entryPosType) { this.companyName = company.companyName; this.companyPosition = pos; - dialogBoxCreate("Congratulations! You were offered a new job at ", this.companyName, " as a " + pos.positionName); + if (leaveCompany) { + dialogBoxCreate("Congratulations! You were offered a new job at ", this.companyName, " as a " + pos.positionName + "!", + "You lost 1000 reputatation at your old company " + oldCompanyName + " because you left."); + } else { + dialogBoxCreate("Congratulations! You were offered a new job at ", this.companyName, " as a " + pos.positionName + "!"); + } + Engine.loadLocationContent(); }