mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 16:17:21 +08:00
Fix: rename equipment functions (#3665)
This commit is contained in:
@@ -127,7 +127,7 @@ class Enhancement(Dock):
|
|||||||
logger.info(
|
logger.info(
|
||||||
'Reached maximum number to check, exiting current category')
|
'Reached maximum number to check, exiting current category')
|
||||||
return "state_enhance_exit"
|
return "state_enhance_exit"
|
||||||
if not self.equip_side_navbar_ensure(bottom=4):
|
if not self.ship_side_navbar_ensure(bottom=4):
|
||||||
return "state_enhance_check"
|
return "state_enhance_check"
|
||||||
|
|
||||||
self.wait_until_appear(ENHANCE_RECOMMEND, offset=(
|
self.wait_until_appear(ENHANCE_RECOMMEND, offset=(
|
||||||
@@ -189,7 +189,7 @@ class Enhancement(Dock):
|
|||||||
return "state_enhance_confirm"
|
return "state_enhance_confirm"
|
||||||
|
|
||||||
# Try to swipe to next
|
# Try to swipe to next
|
||||||
if self.equip_view_next(check_button=ENHANCE_RECOMMEND):
|
if self.ship_view_next(check_button=ENHANCE_RECOMMEND):
|
||||||
if not need_to_skip:
|
if not need_to_skip:
|
||||||
nonlocal ship_count
|
nonlocal ship_count
|
||||||
ship_count -= 1
|
ship_count -= 1
|
||||||
@@ -221,7 +221,7 @@ class Enhancement(Dock):
|
|||||||
# Avoid too_many_click exception caused by multiple tries without material
|
# Avoid too_many_click exception caused by multiple tries without material
|
||||||
if state_list[-2:] == ["state_enhance_recommend", "state_enhance_fail"]:
|
if state_list[-2:] == ["state_enhance_recommend", "state_enhance_fail"]:
|
||||||
if len(self.device.click_record):
|
if len(self.device.click_record):
|
||||||
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'EQUIP_SWIPE']:
|
while self.device.click_record[-1] in ['ENHANCE_RECOMMEND', 'SHIP_SWIPE']:
|
||||||
self.device.click_record.pop()
|
self.device.click_record.pop()
|
||||||
state_list.clear()
|
state_list.clear()
|
||||||
state_list.append(state)
|
state_list.append(state)
|
||||||
|
|||||||
Reference in New Issue
Block a user