mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 15:33:52 +08:00
Fix: [EN] Temp fix on dock_selected, EN has no selected info in dock
This commit is contained in:
@@ -127,6 +127,20 @@ class Dock(Equipment):
|
|||||||
button (Button): Ship button to select
|
button (Button): Ship button to select
|
||||||
skip_first_screenshot:
|
skip_first_screenshot:
|
||||||
"""
|
"""
|
||||||
|
if self.config.SERVER == 'en':
|
||||||
|
logger.info('EN has no dock_selected check currently, use plain click')
|
||||||
|
|
||||||
|
self.device.click(button)
|
||||||
|
|
||||||
|
while 1:
|
||||||
|
self.device.screenshot()
|
||||||
|
|
||||||
|
if self.appear(DOCK_CHECK, offset=(20, 20)):
|
||||||
|
break
|
||||||
|
if self.handle_popup_confirm('DOCK_SELECT'):
|
||||||
|
continue
|
||||||
|
return
|
||||||
|
|
||||||
while 1:
|
while 1:
|
||||||
if skip_first_screenshot:
|
if skip_first_screenshot:
|
||||||
skip_first_screenshot = False
|
skip_first_screenshot = False
|
||||||
@@ -151,6 +165,10 @@ class Dock(Equipment):
|
|||||||
bool: If selected a ship in dock.
|
bool: If selected a ship in dock.
|
||||||
True for ship counter 1/1, False for 0/1.
|
True for ship counter 1/1, False for 0/1.
|
||||||
"""
|
"""
|
||||||
|
if self.config.SERVER == 'en':
|
||||||
|
logger.info('EN has no dock_selected check currently, assume not selected')
|
||||||
|
return False
|
||||||
|
|
||||||
current = 0
|
current = 0
|
||||||
timeout = Timer(1.5, count=3).start()
|
timeout = Timer(1.5, count=3).start()
|
||||||
while 1:
|
while 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user