few more bugfixes

This commit is contained in:
Olivier Gagnon
2021-11-11 23:28:08 -05:00
parent a54e613e42
commit 3112dc60c0
24 changed files with 72 additions and 86 deletions

View File

@@ -508,7 +508,6 @@ export function purchaseHashUpgrade(player: IPlayer, upgName: string, upgTarget:
}
if (!(target instanceof Server)) throw new Error(`'${upgTarget}' is not a normal server.`);
const old = target.moneyMax;
target.changeMaximumMoney(upg.value);
} catch (e) {
player.hashManager.refundUpgrade(upgName);