mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +01:00
make workinprogress crime 2 digit precision
This commit is contained in:
parent
3ee7d593d0
commit
24b6eb4d56
@ -1206,6 +1206,10 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
||||
_ctx.log(() => txt);
|
||||
}
|
||||
|
||||
if (player.currentWork !== null) {
|
||||
player.finishNEWWork(true);
|
||||
}
|
||||
|
||||
// Set Location to slums
|
||||
player.gotoLocation(LocationName.Slums);
|
||||
|
||||
|
@ -149,7 +149,7 @@ export function WorkInProgressRoot(): React.ReactElement {
|
||||
if (player.currentWork !== null) {
|
||||
if (isCrimeWork(player.currentWork)) {
|
||||
const crime = player.currentWork.getCrime();
|
||||
const completion = Math.round(((player.currentWork.cyclesWorked * CONSTANTS._idleSpeed) / crime.time) * 100);
|
||||
const completion = ((player.currentWork.cyclesWorked * CONSTANTS._idleSpeed) / crime.time) * 100;
|
||||
|
||||
workInfo = {
|
||||
buttons: {
|
||||
|
Loading…
Reference in New Issue
Block a user