mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-13 05:37:00 +08:00
Compare commits
1 Commits
dev
...
logger_unl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
678aba2807 |
BIN
assets/cn/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
BIN
assets/cn/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/en/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
BIN
assets/en/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
BIN
assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/tw/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
BIN
assets/tw/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -21,6 +21,7 @@ class OpsiVoucher(OSMap):
|
|||||||
self._os_voucher_enter()
|
self._os_voucher_enter()
|
||||||
VoucherShop(self.config, self.device).run()
|
VoucherShop(self.config, self.device).run()
|
||||||
self._os_voucher_exit()
|
self._os_voucher_exit()
|
||||||
|
self.logger_use()
|
||||||
|
|
||||||
next_reset = get_os_next_reset()
|
next_reset = get_os_next_reset()
|
||||||
logger.info('OS voucher finished, delay to next reset')
|
logger.info('OS voucher finished, delay to next reset')
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ STRATEGIC_SEARCH_ZONEMODE_REPEAT = Button(area={'cn': (548, 335, 568, 349), 'en'
|
|||||||
TEMPLATE_STORAGE_ABYSSAL = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_ABYSSAL.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_ABYSSAL.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_ABYSSAL.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_ABYSSAL.png'})
|
TEMPLATE_STORAGE_ABYSSAL = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_ABYSSAL.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_ABYSSAL.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_ABYSSAL.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_ABYSSAL.png'})
|
||||||
TEMPLATE_STORAGE_COMBAT = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_COMBAT.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_COMBAT.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_COMBAT.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_COMBAT.png'})
|
TEMPLATE_STORAGE_COMBAT = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_COMBAT.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_COMBAT.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_COMBAT.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_COMBAT.png'})
|
||||||
TEMPLATE_STORAGE_LOGGER = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_LOGGER.gif', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_LOGGER.gif', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER.gif', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_LOGGER.gif'})
|
TEMPLATE_STORAGE_LOGGER = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_LOGGER.gif', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_LOGGER.gif', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER.gif', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_LOGGER.gif'})
|
||||||
|
TEMPLATE_STORAGE_LOGGER_UNLOCK = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_LOGGER_UNLOCK.png'})
|
||||||
TEMPLATE_STORAGE_OBSCURE = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_OBSCURE.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_OBSCURE.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_OBSCURE.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_OBSCURE.png'})
|
TEMPLATE_STORAGE_OBSCURE = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_OBSCURE.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_OBSCURE.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_OBSCURE.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_OBSCURE.png'})
|
||||||
TEMPLATE_STORAGE_OFFENSE = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_OFFENSE.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_OFFENSE.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_OFFENSE.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_OFFENSE.png'})
|
TEMPLATE_STORAGE_OFFENSE = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_OFFENSE.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_OFFENSE.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_OFFENSE.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_OFFENSE.png'})
|
||||||
TEMPLATE_STORAGE_QUALITY_COMBAT = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png'})
|
TEMPLATE_STORAGE_QUALITY_COMBAT = Template(file={'cn': './assets/cn/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png', 'en': './assets/en/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png', 'jp': './assets/jp/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png', 'tw': './assets/tw/os_handler/TEMPLATE_STORAGE_QUALITY_COMBAT.png'})
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ from module.logger import logger
|
|||||||
from module.os.globe_operation import GlobeOperation
|
from module.os.globe_operation import GlobeOperation
|
||||||
from module.os.globe_zone import ZoneManager
|
from module.os.globe_zone import ZoneManager
|
||||||
from module.os_handler.assets import *
|
from module.os_handler.assets import *
|
||||||
|
from module.storage.assets import BOX_USE
|
||||||
from module.ui.scroll import Scroll
|
from module.ui.scroll import Scroll
|
||||||
|
|
||||||
SCROLL_STORAGE = Scroll(STORATE_SCROLL, color=(247, 211, 66))
|
SCROLL_STORAGE = Scroll(STORATE_SCROLL, color=(247, 211, 66))
|
||||||
@@ -80,6 +81,10 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
if self.appear_then_click(STORAGE_USE, offset=(180, 30), interval=5):
|
if self.appear_then_click(STORAGE_USE, offset=(180, 30), interval=5):
|
||||||
self.interval_reset(STORAGE_CHECK)
|
self.interval_reset(STORAGE_CHECK)
|
||||||
continue
|
continue
|
||||||
|
if self.appear_then_click(BOX_USE, offset=(180, 30), interval=5):
|
||||||
|
self.interval_reset(STORAGE_CHECK)
|
||||||
|
success = True
|
||||||
|
continue
|
||||||
if self.appear_then_click(GET_ITEMS_1, interval=5):
|
if self.appear_then_click(GET_ITEMS_1, interval=5):
|
||||||
self.interval_reset(STORAGE_CHECK)
|
self.interval_reset(STORAGE_CHECK)
|
||||||
success = True
|
success = True
|
||||||
@@ -92,6 +97,8 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
self.device.click(CLICK_SAFE_AREA)
|
self.device.click(CLICK_SAFE_AREA)
|
||||||
success = True
|
success = True
|
||||||
continue
|
continue
|
||||||
|
if self.handle_story_skip():
|
||||||
|
continue
|
||||||
# Use item
|
# Use item
|
||||||
if self.appear(STORAGE_CHECK, offset=(20, 20), interval=5):
|
if self.appear(STORAGE_CHECK, offset=(20, 20), interval=5):
|
||||||
self.device.click(button)
|
self.device.click(button)
|
||||||
@@ -114,6 +121,7 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
|
|
||||||
image = rgb2gray(self.device.image)
|
image = rgb2gray(self.device.image)
|
||||||
items = TEMPLATE_STORAGE_LOGGER.match_multi(image, similarity=0.5)
|
items = TEMPLATE_STORAGE_LOGGER.match_multi(image, similarity=0.5)
|
||||||
|
items.extend(TEMPLATE_STORAGE_LOGGER_UNLOCK.match_multi(image, similarity=0.5))
|
||||||
logger.attr('Storage_logger', len(items))
|
logger.attr('Storage_logger', len(items))
|
||||||
|
|
||||||
if len(items):
|
if len(items):
|
||||||
@@ -123,6 +131,12 @@ class StorageHandler(GlobeOperation, ZoneManager):
|
|||||||
logger.info('All loggers in storage have been used')
|
logger.info('All loggers in storage have been used')
|
||||||
break
|
break
|
||||||
|
|
||||||
|
def logger_use(self):
|
||||||
|
logger.hr('Logger use')
|
||||||
|
self.storage_enter()
|
||||||
|
self.storage_logger_use_all()
|
||||||
|
self.storage_quit()
|
||||||
|
|
||||||
def storage_sample_use_all(self):
|
def storage_sample_use_all(self):
|
||||||
"""
|
"""
|
||||||
Pages:
|
Pages:
|
||||||
|
|||||||
Reference in New Issue
Block a user