mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 02:55:25 +08:00
Optimize: 战斗中放慢截图速度, 降低CPU使用
This commit is contained in:
@@ -20,10 +20,11 @@ class SubmarineCall(ModuleBase):
|
||||
Returns:
|
||||
bool: If call.
|
||||
"""
|
||||
if not self.config.SUBMARINE or self.config.SUBMARINE_MODE in ['do_not_use', 'hunt_only']:
|
||||
return False
|
||||
if self.submarine_call_flag:
|
||||
return False
|
||||
if not self.config.SUBMARINE or self.config.SUBMARINE_MODE in ['do_not_use', 'hunt_only']:
|
||||
self.submarine_call_flag = True
|
||||
return False
|
||||
if self.submarine_call_timer.reached():
|
||||
logger.info('Submarine call timer reached')
|
||||
self.submarine_call_flag = True
|
||||
|
||||
Reference in New Issue
Block a user