mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-25 06:52:50 +08:00
revert this file, not meant to be part of branch
This commit is contained in:
@@ -6,7 +6,7 @@ from retrying import retry
|
|||||||
from module.base.timer import Timer
|
from module.base.timer import Timer
|
||||||
from module.base.utils import *
|
from module.base.utils import *
|
||||||
from module.device.connection import Connection
|
from module.device.connection import Connection
|
||||||
from module.exception import ScriptError, GameStuckError
|
from module.exception import ScriptError
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
|
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ class Control(Connection):
|
|||||||
if sum([1 if str(prev) == str(button) else 0 for prev in self.click_record]) >= 12:
|
if sum([1 if str(prev) == str(button) else 0 for prev in self.click_record]) >= 12:
|
||||||
logger.warning(f'Too many click for a button: {button}')
|
logger.warning(f'Too many click for a button: {button}')
|
||||||
logger.info(f'History click: {[str(prev) for prev in self.click_record]}')
|
logger.info(f'History click: {[str(prev) for prev in self.click_record]}')
|
||||||
raise GameStuckError(f'Too many click for a button: {button}')
|
raise ScriptError(f'Too many click for a button: {button}')
|
||||||
else:
|
else:
|
||||||
self.click_record.append(str(button))
|
self.click_record.append(str(button))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user