mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Fix: Empty array of action point amount in action_point_update()
This commit is contained in:
@@ -5,7 +5,7 @@ from module.base.utils import *
|
||||
from module.logger import logger
|
||||
from module.ocr.ocr import Digit, DigitCounter
|
||||
from module.os_handler.assets import *
|
||||
from module.statistics.item import ItemGrid
|
||||
from module.statistics.item import Item, ItemGrid
|
||||
from module.ui.assets import OS_CHECK
|
||||
from module.ui.ui import UI
|
||||
|
||||
@@ -20,9 +20,17 @@ else:
|
||||
# The color of the digits ACTION_POINT_BUY_REMAIN is white in JP, which is light green in CN and EN.
|
||||
OCR_ACTION_POINT_BUY_REMAIN = DigitCounter(
|
||||
ACTION_POINT_BUY_REMAIN, letter=(255, 255, 255), lang='cnocr', name='OCR_ACTION_POINT_BUY_REMAIN')
|
||||
|
||||
|
||||
class ActionPointItem(Item):
|
||||
def predict_valid(self):
|
||||
return True
|
||||
|
||||
|
||||
ACTION_POINT_GRID = ButtonGrid(
|
||||
origin=(323, 274), delta=(173, 0), button_shape=(115, 115), grid_shape=(4, 1), name='ACTION_POINT_GRID')
|
||||
ACTION_POINT_ITEMS = ItemGrid(ACTION_POINT_GRID, templates={}, amount_area=(43, 89, 113, 113))
|
||||
ACTION_POINT_ITEMS.item_class = ActionPointItem
|
||||
ACTION_POINTS_COST = {
|
||||
1: 5,
|
||||
2: 10,
|
||||
|
||||
Reference in New Issue
Block a user