mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
Some small fixes and getting ready to implement CreateProgram content
This commit is contained in:
parent
2d40afb740
commit
6f5c54b849
@ -43,6 +43,7 @@
|
||||
<script src="src/CompanyJobApplication.js"></script>
|
||||
<script src="src/Terminal.js"></script>
|
||||
<script src="src/PurchaseServers.js"></script>
|
||||
<script src="src/CreateProgram.js"></script>
|
||||
<script src="src/Augmentations.js"></script>
|
||||
|
||||
<script src="src/engine.js"></script>
|
||||
@ -302,6 +303,7 @@
|
||||
|
||||
<!-- Create a program(executable) -->
|
||||
<div id="create-program-container">
|
||||
<ul id="create-program-list"> </ul>
|
||||
</div>
|
||||
|
||||
<!-- Factions -->
|
||||
|
@ -166,7 +166,7 @@ CompanyPosition.prototype.isBusinessJob = function() {
|
||||
this.positionName == "Chief Executive Officer") {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
CompanyPosition.prototype.isSecurityJob = function() {
|
||||
|
4
src/CreateProgram.js
Normal file
4
src/CreateProgram.js
Normal file
@ -0,0 +1,4 @@
|
||||
/* Create programs */
|
||||
function displayCreateProgramContent() {
|
||||
|
||||
}
|
@ -196,8 +196,9 @@ displayLocationContent = function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
//Change the text for the corresponding position from "Apply for X Job" to "Apply for promotion"
|
||||
var currPos = Player.companyPosition;
|
||||
|
||||
//Change the text for the corresponding position from "Apply for X Job" to "Apply for promotion"
|
||||
if (currPos.isSoftwareJob()) {
|
||||
softwareJob.innerHTML = "Apply for a promotion (Software)";
|
||||
} else if (currPos.isITJob()) {
|
||||
@ -212,10 +213,6 @@ displayLocationContent = function() {
|
||||
securityJob.innerHTML = "Apply for a promotion (Security)";
|
||||
} else if (currPos.isAgentJob()) {
|
||||
agentJob.innerHTML = "Apply for a promotion (Agent)";
|
||||
} else if (currPos.positionName == CompanyPositions.Employee) {
|
||||
employeeJob.style.display = "none";
|
||||
} else if (currPos.positionName == CompanyPositions.Waiter) {
|
||||
waiterJob.style.display = "none";
|
||||
}
|
||||
} else {
|
||||
jobTitle.style.display = "none";
|
||||
@ -728,6 +725,20 @@ displayLocationContent = function() {
|
||||
gymTrainAgi.style.display = "block";
|
||||
break;
|
||||
|
||||
default:
|
||||
console.log("ERROR: INVALID LOCATION");
|
||||
|
||||
}
|
||||
|
||||
//Make the "Apply to be Employee and Waiter" texts disappear if you already hold the job
|
||||
if (loc == Player.companyName) {
|
||||
var currPos = Player.companyPosition;
|
||||
|
||||
if (currPos.positionName == CompanyPositions.Employee.positionName) {
|
||||
employeeJob.style.display = "none";
|
||||
} else if (currPos.positionName == CompanyPositions.Waiter.positionName) {
|
||||
waiterJob.style.display = "none";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,6 +202,7 @@ var Engine = {
|
||||
loadCreateProgramContent: function() {
|
||||
Engine.hideAllContent();
|
||||
Engine.Display.createProgramContent.style.visibility = "visible";
|
||||
displayCreateProgramContent();
|
||||
|
||||
Engine.currentPage = Engine.Page.CreateProgram;
|
||||
},
|
||||
@ -296,7 +297,7 @@ var Engine = {
|
||||
'Dexterity: ' + (Player.dexterity).toLocaleString() + '<br><br>' +
|
||||
'Agility: ' + (Player.agility).toLocaleString() + '<br><br>' +
|
||||
'Charisma: ' + (Player.charisma).toLocaleString() + '<br><br>' +
|
||||
'Servers owned: ' + Player.purchasedServers.length + '<br><br>';
|
||||
'Servers owned: ' + Player.purchasedServers.length + '<br><br>' +
|
||||
'Hacking experience: ' + (Player.hacking_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Strength experience: ' + (Player.strength_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
'Defense experience: ' + (Player.defense_exp.toFixed(4)).toLocaleString() + '<br><br>' +
|
||||
|
Loading…
Reference in New Issue
Block a user