mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
fix work crashing when installing
This commit is contained in:
parent
96654d4c0a
commit
26986c2d3e
@ -137,6 +137,8 @@ export function prestigeAugmentation(this: PlayerObject): void {
|
||||
// Reapply augs, re-calculate skills and reset HP
|
||||
this.reapplyAllAugmentations(true);
|
||||
this.hp = this.max_hp;
|
||||
|
||||
this.finishWork(true);
|
||||
}
|
||||
|
||||
export function prestigeSourceFile(this: IPlayer): void {
|
||||
|
@ -375,7 +375,6 @@ export function WorkInProgressRoot(): React.ReactElement {
|
||||
|
||||
const position = player.jobs[player.currentWork.companyName];
|
||||
const gains = player.currentWork.getGainRates(player);
|
||||
console.log(player.currentWork.cyclesWorked);
|
||||
workInfo = {
|
||||
buttons: {
|
||||
cancel: cancel,
|
||||
|
Loading…
Reference in New Issue
Block a user