fix work crashing when installing

This commit is contained in:
Olivier Gagnon 2022-07-19 21:42:54 -04:00
parent 96654d4c0a
commit 26986c2d3e
2 changed files with 2 additions and 1 deletions

@ -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,