Merge pull request #1617 from danielyxie/dev

revert safeguard
This commit is contained in:
hydroflame 2021-10-28 16:43:53 -04:00 committed by GitHub
commit 111d87bac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3,7 +3,6 @@ import { PlayerObject } from "./PersonObjects/Player/PlayerObject";
import { sanitizeExploits } from "./Exploits/Exploit";
import { Reviver } from "./utils/JSONReviver";
import Decimal from "decimal.js";
import { Programs } from "./Programs/Programs";
@ -30,9 +29,4 @@ 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);
}
}