Skip to content

Commit

Permalink
Del: Modifying CombatScreenshotInterval is not allowed anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
LmeSzinc committed Jan 11, 2022
1 parent 0413c74 commit 5dc207b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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

0 comments on commit 5dc207b

Please sign in to comment.