mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
fix corp not loading
This commit is contained in:
parent
0114c92829
commit
9d435bbe47
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -155,7 +155,6 @@ export class Corporation {
|
||||
if (this.unlockUpgrades[6] === 1) {
|
||||
upgrades += 0.1;
|
||||
}
|
||||
console.log(upgrades);
|
||||
return Math.pow(dividends, BitNodeMultipliers.CorporationSoftCap + upgrades);
|
||||
}
|
||||
|
||||
|
@ -227,6 +227,22 @@ function evaluateVersionCompatibility(ver: string | number): void {
|
||||
Player.reapplyAllAugmentations(true);
|
||||
Player.reapplyAllSourceFiles();
|
||||
}
|
||||
if (ver < 3) {
|
||||
anyPlayer.money = parseFloat(anyPlayer.money);
|
||||
if (anyPlayer.corporation) {
|
||||
anyPlayer.corporation.funds = parseFloat(anyPlayer.corporation.funds);
|
||||
anyPlayer.corporation.revenue = parseFloat(anyPlayer.corporation.revenue);
|
||||
anyPlayer.corporation.expenses = parseFloat(anyPlayer.corporation.expenses);
|
||||
|
||||
for (let i = 0; i < anyPlayer.corporation.divisions.length; ++i) {
|
||||
const ind = anyPlayer.corporation.divisions[i];
|
||||
ind.lastCycleRevenue = parseFloat(ind.lastCycleRevenue);
|
||||
ind.lastCycleExpenses = parseFloat(ind.lastCycleExpenses);
|
||||
ind.thisCycleRevenue = parseFloat(ind.thisCycleRevenue);
|
||||
ind.thisCycleExpenses = parseFloat(ind.thisCycleExpenses);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -282,6 +282,5 @@ export const Settings: ISettings & ISelfInitializer & ISelfLoading = {
|
||||
Object.assign(Settings.theme, save.theme);
|
||||
delete save.theme;
|
||||
Object.assign(Settings, save);
|
||||
console.log(Settings.TimestampsFormat);
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user