mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 22:22:26 +01:00
safeguyard against Formulas.exe missing
This commit is contained in:
parent
dc88d9b478
commit
ee5eaf9658
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