Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
LmeSzinc committed Jan 11, 2022
2 parents 2443a02 + 5dc207b commit abd91e9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion module/config/argument/args.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"Optimization": {
"CombatScreenshotInterval": {
"type": "input",
"type": "disable",
"value": 1.0
},
"TaskHoardingDuration": {
Expand Down
3 changes: 3 additions & 0 deletions module/config/argument/override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

# ==================== Alas ====================

Alas:
Optimization:
CombatScreenshotInterval: 1.0
Restart:
Scheduler:
SuccessInterval: 0
Expand Down
7 changes: 2 additions & 5 deletions module/device/screenshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ def screenshot_last_save_time_reset(self, genre):
def screenshot_interval_set(self, interval):
interval = max(interval, 0.1)
if interval != self._screenshot_interval_timer.limit:
if self.config.Campaign_UseAutoSearch:
interval = min(interval, 1.0)
logger.info(f'Screenshot interval set to {interval}s, limited to 1.0s in auto search')
else:
logger.info(f'Screenshot interval set to {interval}s')
interval = min(interval, 1.0)
logger.info(f'Screenshot interval set to {interval}s')
self._screenshot_interval_timer.limit = interval
2 changes: 1 addition & 1 deletion module/os/globe_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def os_map_goto_globe(self, unpin=True, skip_first_screenshot=True):
# Popup: Leaving current zone will terminate meowfficer searching.
# Searching reward will be shown after entering another zone.
if self.handle_popup_confirm('GOTO_GLOBE'):
return True
continue

# End
if self.is_in_globe():
Expand Down
8 changes: 4 additions & 4 deletions module/research/preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
> S4-G2.5 > S4-PRY5 > S4-PRY8 > 1.5 > 2 > S4-Q4 > 2.5 > 4 > 5 > S4-C6
> S4-C8 > 6 > 8 > S4-C12 > 12""",
'series_4_blueprint_only': """
S4-DR0.5 > S4-PRY0.5 > S4-H0.5 > S4-DR8 > S4-DR2.5 > S4-DR5 > S4-G1.5 > S4-PRY2.5
> S4-Q0.5 > !4-0.5 > S4-G2.5 > !4-1 > S4-Q1 > reset > S4-G4 > S4-PRY5
> !4-1.5 > S4-Q2 > !4-2 > !4-5 > S4-PRY8 > !4-2.5 > S4-Q4 > !4-4
> !4-C6 > S4-C6 > S4-C8 > !4-C8 > S4-C12 > !4-C12""",
S4-DR0.5 > S4-PRY0.5 > S4-H0.5 > S4-DR8 > S4-DR2.5 > S4-DR5 > S4-G1.5
> S4-PRY2.5 > S4-Q0.5 > 0.5 > S4-G2.5 > S4-Q1 > 1 > reset > S4-G4
> S4-PRY5 > 1.5 > S4-Q2 > 2 > S4-PRY8 > 2.5 > S4-Q4 > 4 > 5 > S4-C6
> 6 > S4-C8 > 8 > S4-C12 > 12""",
'series_4_tenrai_only': """
S4-Q0.5 > S4-PRY0.5 > S4-DR0.5 > S4-Q4 > S4-Q1 > S4-Q2 > S4-H0.5 > 0.5
> S4-G4 > S4-G1.5 > 1 > S4-DR2.5 > S4-PRY2.5 > reset > S4-G2.5 > 1.5
Expand Down
5 changes: 3 additions & 2 deletions webapp/packages/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ const createWindow = async () => {
mainWindow?.isMaximized() ? mainWindow?.restore() : mainWindow?.maximize();
});
ipcMain.on('window-close', function () {
alas.kill();
setTimeout(() => mainWindow?.close(), 500); // Wait taskkill to finish
alas.kill(function () {
mainWindow?.close();
})
});

// Tray
Expand Down
4 changes: 2 additions & 2 deletions webapp/packages/main/src/pyshell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export class PyShell extends PythonShell {
return this;
}

kill(): this {
treeKill(this.childProcess.pid, 'SIGTERM');
kill(callback: (...args: any[]) => void): this {
treeKill(this.childProcess.pid, 'SIGTERM', callback);
return this;
}
}

0 comments on commit abd91e9

Please sign in to comment.