1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-29 16:17:13 +08:00

Opt: Adjust threshold for ultra fast computer

This commit is contained in:
Horizon101011
2022-03-25 22:23:11 +08:00
parent 29aeb354d1
commit 66a0324e4b

View File

@@ -213,7 +213,7 @@ class Enhancement(Dock):
if state == "state_enhance_check": if state == "state_enhance_check":
state_list.clear() state_list.clear()
state_list.append(state) state_list.append(state)
if len(state_list) > 20: if len(state_list) > 30:
logger.critical(f'Too many state transitions: {state_list}') logger.critical(f'Too many state transitions: {state_list}')
raise RequestHumanTakeover raise RequestHumanTakeover
@@ -221,6 +221,7 @@ class Enhancement(Dock):
except KeyError as e: except KeyError as e:
logger.warning(f'Unkonwn state function: {state}') logger.warning(f'Unkonwn state function: {state}')
raise ScriptError(f'Unkonwn state function: {state}') raise ScriptError(f'Unkonwn state function: {state}')
return state, ship_count return state, ship_count
def enhance_ships(self, favourite=None): def enhance_ships(self, favourite=None):