mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2025-02-07 02:31:34 +00:00
Remove some AI stuff so tests can run
This commit is contained in:
parent
a18ca76e3d
commit
a09e87f7ac
1 changed files with 2 additions and 11 deletions
|
@ -129,21 +129,12 @@ export async function loadSave(playerObj: Partial<Player>): Promise<void> {
|
|||
}
|
||||
|
||||
setInterval(() => {
|
||||
if (
|
||||
player.autosave &&
|
||||
((layers as any).main.day.value >= 25 ||
|
||||
(layers as any).main.days[(layers as any).main.day.value - 1].opened.value)
|
||||
) {
|
||||
if (player.autosave) {
|
||||
save();
|
||||
}
|
||||
}, 1000);
|
||||
window.onbeforeunload = () => {
|
||||
if (
|
||||
player.autosave &&
|
||||
((layers as any).main.day.value >= 25 ||
|
||||
(layers as any).main.days[(layers as any).main.day.value - 1].opened.value ||
|
||||
import.meta.env.DEV)
|
||||
) {
|
||||
if (player.autosave) {
|
||||
save();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue