mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Merge pull request #1615 from danielyxie/dev
safeguyard against Formulas.exe missing
This commit is contained in:
commit
4b794bf554
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -5,6 +5,7 @@ import { sanitizeExploits } from "./Exploits/Exploit";
|
||||
import { Reviver } from "./utils/JSONReviver";
|
||||
|
||||
import Decimal from "decimal.js";
|
||||
import { Programs } from "./Programs/Programs";
|
||||
|
||||
export let Player = new PlayerObject();
|
||||
|
||||
@ -29,4 +30,9 @@ export function loadPlayer(saveString: string): void {
|
||||
}
|
||||
|
||||
Player.exploits = sanitizeExploits(Player.exploits);
|
||||
|
||||
const home = Player.getHomeComputer();
|
||||
if (Player.sourceFileLvl(5) > 0 && !home.programs.includes(Programs.Formulas.name)) {
|
||||
Player.getHomeComputer().programs.push(Programs.Formulas.name);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user