mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Merge pull request #73 from danielyxie/bugfix
New Create Program saving progress feature bug fix
This commit is contained in:
commit
1eb3bffe09
@ -864,7 +864,7 @@ PlayerObject.prototype.startCreateProgramWork = function(programName, time, reqL
|
|||||||
var res = programFile.split("-");
|
var res = programFile.split("-");
|
||||||
if (res.length != 3) {break;}
|
if (res.length != 3) {break;}
|
||||||
var percComplete = Number(res[1].slice(0, -1));
|
var percComplete = Number(res[1].slice(0, -1));
|
||||||
if (isNaN(percComplete) || percComplete <= 0 || percComplete >= 100) {break;}
|
if (isNaN(percComplete) || percComplete < 0 || percComplete >= 100) {break;}
|
||||||
this.timeWorked = percComplete / 100 * this.timeNeededToCompleteWork;
|
this.timeWorked = percComplete / 100 * this.timeNeededToCompleteWork;
|
||||||
Player.getHomeComputer().programs.splice(i, 1);
|
Player.getHomeComputer().programs.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user