1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-17 15:45:26 +08:00

Add: shop and build modules

This commit is contained in:
nEEtdo0d
2021-07-10 23:11:32 -04:00
parent 623fc1d921
commit c9bfb2d983
9 changed files with 1097 additions and 0 deletions

View File

@@ -0,0 +1,88 @@
from module.base.button import ButtonGrid
# Known Guild Items with Secondary Grid
SELECT_ITEMS = [
'book',
'box',
'retrofit',
'plate',
'pr',
'dr',
]
# Known Secondary Grid Items by Category
SELECT_BOOK = {
'red': 0,
'blue': 1,
'yellow': 2,
}
SELECT_BOX = {
'eagle': 0,
'royal': 1,
'sakura': 2,
'ironblood': 3,
}
SELECT_RETROFIT = {
'dd': 0,
'cl': 1,
'bb': 2,
'cv': 3,
}
SELECT_PLATE = {
'general': 0,
'gun': 1,
'torpedo': 2,
'antiair': 3,
'plane': 4,
}
SELECT_PR = {
'neptune': 0,
'monarch': 1,
'ibuki': 2,
'izumo': 3,
'roon': 4,
'saintlouis': 5,
'seattle': 0,
'georgia': 1,
'kitakaze': 2,
'gascogne': 3,
'cheshire': 0,
'mainz': 1,
'odin': 2,
'champagne': 3,
}
SELECT_DR = {
'azuma': 0,
'friedrich': 1,
'drake': 0,
}
# Known Secondary Grid Items Limits
SELECT_BOOK_LIMIT = 3
SELECT_BOX_LIMIT = 1
SELECT_RETROFIT_LIMIT = 2
SELECT_PLATE_LIMIT = 5
SELECT_PR_LIMIT = 1
SELECT_DR_LIMIT = 1
# Known Secondary Grid Sizes
SELECT_GRID_3X1 = ButtonGrid(
origin=(412, 258), delta=(158, 0), button_shape=(119, 19), grid_shape=(3, 1),
name='SHOP_SELECT_GRID_3X1')
SELECT_GRID_4X1 = ButtonGrid(
origin=(334, 258), delta=(158, 0), button_shape=(119, 19), grid_shape=(4, 1),
name='SHOP_SELECT_GRID_4X1')
SELECT_GRID_5X1 = ButtonGrid(
origin=(256, 258), delta=(158, 0), button_shape=(119, 19), grid_shape=(5, 1),
name='SHOP_SELECT_GRID_5X1')
SELECT_GRID_6X1 = ButtonGrid(
origin=(176, 258), delta=(158, 0), button_shape=(119, 19), grid_shape=(6, 1),
name='SHOP_SELECT_GRID_6X1')