mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
commit
9f14c38396
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -116,7 +116,7 @@ export const CONSTANTS: {
|
||||
LatestUpdate: string;
|
||||
} = {
|
||||
VersionString: "1.0.0",
|
||||
VersionNumber: 2,
|
||||
VersionNumber: 3,
|
||||
|
||||
// Speed (in ms) at which the main loop is updated
|
||||
_idleSpeed: 200,
|
||||
|
@ -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