mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 11:33:47 +01:00
commit
1846532216
@ -688,6 +688,11 @@ displayFactionContent = function(factionName) {
|
|||||||
fieldWorkDiv.style.display = "inline";
|
fieldWorkDiv.style.display = "inline";
|
||||||
securityWorkDiv.style.display = "inline";
|
securityWorkDiv.style.display = "inline";
|
||||||
break;
|
break;
|
||||||
|
case "Fulcrum Secret Technologies":
|
||||||
|
hackDiv.style.display = "inline";
|
||||||
|
fieldWorkDiv.style.display = "none";
|
||||||
|
securityWorkDiv.style.display = "inline";
|
||||||
|
break;
|
||||||
case "BitRunners":
|
case "BitRunners":
|
||||||
hackDiv.style.display = "inline";
|
hackDiv.style.display = "inline";
|
||||||
fieldWorkDiv.style.display = "none";
|
fieldWorkDiv.style.display = "none";
|
||||||
|
@ -171,6 +171,7 @@ function PlayerObject() {
|
|||||||
//Used to store the last update time.
|
//Used to store the last update time.
|
||||||
this.lastUpdate = 0;
|
this.lastUpdate = 0;
|
||||||
this.totalPlaytime = 0;
|
this.totalPlaytime = 0;
|
||||||
|
this.playtimeSinceLastAug = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
PlayerObject.prototype.init = function() {
|
PlayerObject.prototype.init = function() {
|
||||||
|
@ -221,7 +221,9 @@ loadImportedGame = function(saveObj, saveString) {
|
|||||||
//Update total playtime
|
//Update total playtime
|
||||||
var time = numCyclesOffline * Engine._idleSpeed;
|
var time = numCyclesOffline * Engine._idleSpeed;
|
||||||
if (Player.totalPlaytime == null) {Player.totalPlaytime = 0;}
|
if (Player.totalPlaytime == null) {Player.totalPlaytime = 0;}
|
||||||
|
if (Player.playtimeSinceLastAug == null) {Player.playtimeSinceLastAug = 0;}
|
||||||
Player.totalPlaytime += time;
|
Player.totalPlaytime += time;
|
||||||
|
Player.playtimeSinceLastAug += time;
|
||||||
|
|
||||||
//Re-apply augmentations
|
//Re-apply augmentations
|
||||||
Player.reapplyAllAugmentations();
|
Player.reapplyAllAugmentations();
|
||||||
|
@ -289,6 +289,7 @@ var Engine = {
|
|||||||
'<b>Misc</b><br><br>' +
|
'<b>Misc</b><br><br>' +
|
||||||
'Servers owned: ' + Player.purchasedServers.length + '<br>' +
|
'Servers owned: ' + Player.purchasedServers.length + '<br>' +
|
||||||
'Hacknet Nodes owned: ' + Player.hacknetNodes.length + '<br>' +
|
'Hacknet Nodes owned: ' + Player.hacknetNodes.length + '<br>' +
|
||||||
|
'Time played since last Augmentation: ' + convertTimeMsToTimeElapsedString(Player.playtimeSinceLastAug) + '<br>' +
|
||||||
'Time played: ' + convertTimeMsToTimeElapsedString(Player.totalPlaytime) + '<br><br><br>').replace( / /g, " " );
|
'Time played: ' + convertTimeMsToTimeElapsedString(Player.totalPlaytime) + '<br><br><br>').replace( / /g, " " );
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -454,7 +455,9 @@ var Engine = {
|
|||||||
//Update total playtime
|
//Update total playtime
|
||||||
var time = numCycles * Engine._idleSpeed;
|
var time = numCycles * Engine._idleSpeed;
|
||||||
if (Player.totalPlaytime == null) {Player.totalPlaytime = 0;}
|
if (Player.totalPlaytime == null) {Player.totalPlaytime = 0;}
|
||||||
|
if (Player.playtimeSinceLastAug == null) {Player.playtimeSinceLastAug = 0;}
|
||||||
Player.totalPlaytime += time;
|
Player.totalPlaytime += time;
|
||||||
|
Player.playtimeSinceLastAug += time;
|
||||||
|
|
||||||
//Start Manual hack
|
//Start Manual hack
|
||||||
if (Player.startAction == true) {
|
if (Player.startAction == true) {
|
||||||
@ -679,7 +682,9 @@ var Engine = {
|
|||||||
//Update total playtime
|
//Update total playtime
|
||||||
var time = numCyclesOffline * Engine._idleSpeed;
|
var time = numCyclesOffline * Engine._idleSpeed;
|
||||||
if (Player.totalPlaytime == null) {Player.totalPlaytime = 0;}
|
if (Player.totalPlaytime == null) {Player.totalPlaytime = 0;}
|
||||||
|
if (Player.playtimeSinceLastAug == null) {Player.playtimeSinceLastAug = 0;}
|
||||||
Player.totalPlaytime += time;
|
Player.totalPlaytime += time;
|
||||||
|
Player.playtimeSinceLastAug += time;
|
||||||
|
|
||||||
//Re-apply augmentations
|
//Re-apply augmentations
|
||||||
Player.reapplyAllAugmentations();
|
Player.reapplyAllAugmentations();
|
||||||
|
Loading…
Reference in New Issue
Block a user