mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 10:58:21 +08:00
Fix: Fewer tries on swipe to shorten duration
Added: Implementation of _enhance_choose_simple, simplified version of _enhance_choose, specifically enabled only if enhance_order_string is populated Updated: help info for enhance_order_string with example input, removed subtext header info.
This commit is contained in:
@@ -19,6 +19,7 @@ class Equipment(UI):
|
||||
def _view_swipe(self, distance, check_button=EQUIPMENT_OPEN):
|
||||
swipe_count = 0
|
||||
swipe_timer = Timer(5, count=10)
|
||||
self.ensure_no_info_bar()
|
||||
SWIPE_CHECK.load_color(self.device.image)
|
||||
while 1:
|
||||
if not swipe_timer.started() or swipe_timer.reached():
|
||||
@@ -29,7 +30,7 @@ class Equipment(UI):
|
||||
|
||||
self.device.screenshot()
|
||||
if SWIPE_CHECK.match(self.device.image):
|
||||
if swipe_count > 3:
|
||||
if swipe_count > 1:
|
||||
logger.warning('Same ship on multiple swipes')
|
||||
return False
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user