mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-19 23:33:33 +08:00
Fix: quit island product page if no matched item
This commit is contained in:
@@ -2043,8 +2043,8 @@
|
|||||||
"5": "蛋包饭",
|
"5": "蛋包饭",
|
||||||
"6": "白菜豆腐汤",
|
"6": "白菜豆腐汤",
|
||||||
"7": "蔬菜沙拉",
|
"7": "蔬菜沙拉",
|
||||||
"8": "绵玉定食",
|
"8": "经典豆腐套餐",
|
||||||
"9": "经典豆腐套餐"
|
"9": "绵玉定食"
|
||||||
},
|
},
|
||||||
"Option2": {
|
"Option2": {
|
||||||
"name": "第二个格子生产物品",
|
"name": "第二个格子生产物品",
|
||||||
@@ -2057,8 +2057,8 @@
|
|||||||
"5": "蛋包饭",
|
"5": "蛋包饭",
|
||||||
"6": "白菜豆腐汤",
|
"6": "白菜豆腐汤",
|
||||||
"7": "蔬菜沙拉",
|
"7": "蔬菜沙拉",
|
||||||
"8": "绵玉定食",
|
"8": "经典豆腐套餐",
|
||||||
"9": "经典豆腐套餐"
|
"9": "绵玉定食"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Island8": {
|
"Island8": {
|
||||||
|
|||||||
@@ -196,7 +196,8 @@ class Island(IslandUI):
|
|||||||
drag = False
|
drag = False
|
||||||
|
|
||||||
if last == current.items[-1]:
|
if last == current.items[-1]:
|
||||||
logger.info('Reach the bottom of items')
|
logger.info(f'Reach the bottom of items, dit not match item {option}')
|
||||||
|
self.island_product_quit()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if drag:
|
if drag:
|
||||||
@@ -317,8 +318,8 @@ class Island(IslandUI):
|
|||||||
continue
|
continue
|
||||||
if self.project_receive(button):
|
if self.project_receive(button):
|
||||||
self.island_select_role()
|
self.island_select_role()
|
||||||
self.island_select_product(option)
|
if self.island_select_product(option):
|
||||||
self.island_product_confirm()
|
self.island_product_confirm()
|
||||||
if not end or option != proj_config[-1]:
|
if not end or option != proj_config[-1]:
|
||||||
self.ensure_project(proj)
|
self.ensure_project(proj)
|
||||||
timeout.reset()
|
timeout.reset()
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ items_data_cn = {
|
|||||||
},
|
},
|
||||||
7: {
|
7: {
|
||||||
1: '柿子饼', 2: '松茸鸡汤', 3: '豆腐', 4: '肉末烧豆腐', 5: '蛋包饭',
|
1: '柿子饼', 2: '松茸鸡汤', 3: '豆腐', 4: '肉末烧豆腐', 5: '蛋包饭',
|
||||||
6: '白菜豆腐汤', 7: '蔬菜沙拉', 8: '绵玉定食', 9: '经典豆腐套餐',
|
6: '白菜豆腐汤', 7: '蔬菜沙拉', 8: '经典豆腐套餐', 9: '绵玉定食',
|
||||||
},
|
},
|
||||||
8: {
|
8: {
|
||||||
1: '胡萝卜秋梨汁', 2: '菊花茶', 3: '苹果汁', 4: '香蕉芒果汁',
|
1: '胡萝卜秋梨汁', 2: '菊花茶', 3: '苹果汁', 4: '香蕉芒果汁',
|
||||||
|
|||||||
Reference in New Issue
Block a user