mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
incomplete programs are more precise
This commit is contained in:
parent
8dba456b65
commit
a483268f3c
@ -1280,7 +1280,7 @@ PlayerObject.prototype.finishCreateProgramWork = function(cancelled, sing=false)
|
|||||||
|
|
||||||
this.getHomeComputer().programs.push(programName);
|
this.getHomeComputer().programs.push(programName);
|
||||||
} else {
|
} else {
|
||||||
var perc = Math.floor(this.timeWorkedCreateProgram / this.timeNeededToCompleteWork * 100).toString();
|
var perc = (Math.floor(this.timeWorkedCreateProgram / this.timeNeededToCompleteWork * 10000)/100).toString();
|
||||||
var incompleteName = programName + "-" + perc + "%-INC";
|
var incompleteName = programName + "-" + perc + "%-INC";
|
||||||
this.getHomeComputer().programs.push(incompleteName);
|
this.getHomeComputer().programs.push(incompleteName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user