mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 23:18:22 +08:00
Fix: Edge detection in OpSi obscure and abyssal
- Fix: Increase threshold of OCR_SHOP_YELLOW_COINS - Fix: Akashi's shop has been checked twice
This commit is contained in:
@@ -7,7 +7,7 @@ from module.os_handler.map_event import MapEventHandler
|
||||
from module.statistics.item import Item, ItemGrid
|
||||
from module.ui.ui import UI
|
||||
|
||||
OCR_SHOP_YELLOW_COINS = Digit(SHOP_YELLOW_COINS, letter=(239, 239, 239), name='OCR_SHOP_YELLOW_COINS')
|
||||
OCR_SHOP_YELLOW_COINS = Digit(SHOP_YELLOW_COINS, letter=(239, 239, 239), threshold=160, name='OCR_SHOP_YELLOW_COINS')
|
||||
OCR_SHOP_PURPLE_COINS = Digit(SHOP_PURPLE_COINS, letter=(255, 255, 255), name='OCR_SHOP_PURPLE_COINS')
|
||||
|
||||
|
||||
@@ -198,3 +198,9 @@ class OSShopHandler(UI, MapEventHandler):
|
||||
additional=self.handle_story_skip, skip_first_screenshot=True)
|
||||
self.os_shop_buy(select_func=self.os_shop_get_item_to_buy_in_akashi)
|
||||
self.ui_back(appear_button=PORT_SUPPLY_CHECK, check_button=self.is_in_map, skip_first_screenshot=True)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
self = OSShopHandler('alas6')
|
||||
self.image_file = r'C:\Users\LmeSzinc\Nox_share\ImageShare\Screenshots\Screenshot_20220516-013210.png'
|
||||
self.os_shop_get_coins()
|
||||
Reference in New Issue
Block a user