mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-01 20:13:51 +01:00
Small UI improvements
This commit is contained in:
parent
dbdb089887
commit
5870430ea7
@ -29,6 +29,11 @@ li {
|
|||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
margin: 4px;
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Main menu */
|
/* Main menu */
|
||||||
.mainmenu {
|
.mainmenu {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>Netburner</title>
|
<title>Bitburner</title>
|
||||||
<link rel="stylesheet" type="text/css" href="css/styles.css" />
|
<link rel="stylesheet" type="text/css" href="css/styles.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/terminal.css" />
|
<link rel="stylesheet" type="text/css" href="css/terminal.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="css/menupages.css" />
|
<link rel="stylesheet" type="text/css" href="css/menupages.css" />
|
||||||
|
@ -20,7 +20,7 @@ PlayerObject.prototype.applyForJob = function(entryPosType) {
|
|||||||
var pos = entryPosType;
|
var pos = entryPosType;
|
||||||
|
|
||||||
if (!this.isQualified(company, pos)) {
|
if (!this.isQualified(company, pos)) {
|
||||||
dialogBoxCreate("You are not qualified for this position");
|
dialogBoxCreate("Unforunately, you do not qualify for this position");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,8 +59,12 @@ PlayerObject.prototype.applyForJob = function(entryPosType) {
|
|||||||
|
|
||||||
|
|
||||||
//Lose reputation from a Company if you are leaving it for another job
|
//Lose reputation from a Company if you are leaving it for another job
|
||||||
|
var leaveCompany = false;
|
||||||
|
var oldCompanyName = "";
|
||||||
if (currCompany != "") {
|
if (currCompany != "") {
|
||||||
if (currCompany.companyName != company.companyName) {
|
if (currCompany.companyName != company.companyName) {
|
||||||
|
leaveCompany = true;
|
||||||
|
oldCompanyName = currCompany.companyName;
|
||||||
company.playerReputation -= 1000;
|
company.playerReputation -= 1000;
|
||||||
if (company.playerReputation < 0) {company.playerReputation = 0;}
|
if (company.playerReputation < 0) {company.playerReputation = 0;}
|
||||||
if (Engine.debug) {
|
if (Engine.debug) {
|
||||||
@ -73,7 +77,13 @@ PlayerObject.prototype.applyForJob = function(entryPosType) {
|
|||||||
this.companyName = company.companyName;
|
this.companyName = company.companyName;
|
||||||
this.companyPosition = pos;
|
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();
|
Engine.loadLocationContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user