mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 14:13:48 +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
|
// Reapply augs, re-calculate skills and reset HP
|
||||||
this.reapplyAllAugmentations(true);
|
this.reapplyAllAugmentations(true);
|
||||||
this.hp = this.max_hp;
|
this.hp = this.max_hp;
|
||||||
|
|
||||||
|
this.finishWork(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function prestigeSourceFile(this: IPlayer): void {
|
export function prestigeSourceFile(this: IPlayer): void {
|
||||||
|
@ -375,7 +375,6 @@ export function WorkInProgressRoot(): React.ReactElement {
|
|||||||
|
|
||||||
const position = player.jobs[player.currentWork.companyName];
|
const position = player.jobs[player.currentWork.companyName];
|
||||||
const gains = player.currentWork.getGainRates(player);
|
const gains = player.currentWork.getGainRates(player);
|
||||||
console.log(player.currentWork.cyclesWorked);
|
|
||||||
workInfo = {
|
workInfo = {
|
||||||
buttons: {
|
buttons: {
|
||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
|
Loading…
Reference in New Issue
Block a user