1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-28 20:54:03 +08:00

fix: skip_first_screenshot bug

This commit is contained in:
Cyunmi
2021-08-13 17:56:20 +08:00
parent 6e06e5ab36
commit 8f39838bc7

View File

@@ -32,7 +32,7 @@ class EquipmentChange(Equipment):
while 1: while 1:
if skip_first_screenshot: if skip_first_screenshot:
pass skip_first_screenshot = False
else: else:
self.device.screenshot() self.device.screenshot()
@@ -68,7 +68,7 @@ class EquipmentChange(Equipment):
while 1: while 1:
if skip_first_screenshot: if skip_first_screenshot:
pass skip_first_screenshot = False
else: else:
self.device.screenshot() self.device.screenshot()
@@ -99,7 +99,7 @@ class EquipmentChange(Equipment):
self.device.sleep(0.3) self.device.sleep(0.3)
self.device.screenshot() self.device.screenshot()
def _equip_equipment(self, point, offset=(100, 100)): def _equip_equipment(self, point, offset=(100, 100), skip_first_screenshot=True):
''' '''
Equip Equipment then back to ship details Equip Equipment then back to ship details
Pages: Pages:
@@ -110,7 +110,11 @@ class EquipmentChange(Equipment):
have_equipped = False have_equipped = False
while 1: while 1:
self.device.screenshot() if skip_first_screenshot:
skip_first_screenshot = False
else:
self.device.screenshot()
if not have_equipped and self.appear(EQUIPPING_OFF, interval=5): if not have_equipped and self.appear(EQUIPPING_OFF, interval=5):
self.device.click( self.device.click(