剿灭代理合成玉数量为0时返回
This commit is contained in:
parent
e94167f55d
commit
73e928724a
4 changed files with 8 additions and 0 deletions
BIN
mower/resources/can_not_use_ope.png
(Stored with Git LFS)
Normal file
BIN
mower/resources/can_not_use_ope.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -166,6 +166,9 @@ class OperationSolver(SceneGraphSolver):
|
||||||
return
|
return
|
||||||
self.tap_element("ope_start", interval=2)
|
self.tap_element("ope_start", interval=2)
|
||||||
elif scene == Scene.OPERATOR_ELIMINATE_AGENCY:
|
elif scene == Scene.OPERATOR_ELIMINATE_AGENCY:
|
||||||
|
if self.find("can_not_use_ope"):
|
||||||
|
logger.warning("当期剿灭代理获取合成玉数量为0")
|
||||||
|
return True
|
||||||
self.tap_element("ope_elimi_agency_confirm", interval=2)
|
self.tap_element("ope_elimi_agency_confirm", interval=2)
|
||||||
elif scene == Scene.UPGRADE:
|
elif scene == Scene.UPGRADE:
|
||||||
self.tap((960, 540))
|
self.tap((960, 540))
|
||||||
|
|
|
@ -3,6 +3,7 @@ color = {
|
||||||
"1800": (158, 958),
|
"1800": (158, 958),
|
||||||
"arrange_order_options": (1652, 23),
|
"arrange_order_options": (1652, 23),
|
||||||
"arrange_order_options_scene": (369, 199),
|
"arrange_order_options_scene": (369, 199),
|
||||||
|
"can_not_use_ope": (1653, 184),
|
||||||
"choose_agent/battle_confirm": ((1476, 991), (1591, 991)),
|
"choose_agent/battle_confirm": ((1476, 991), (1591, 991)),
|
||||||
"choose_agent/clear": (685, 996),
|
"choose_agent/clear": (685, 996),
|
||||||
"choose_agent/fast_select": ((1296, 25), (1592, 98)),
|
"choose_agent/fast_select": ((1296, 25), (1592, 98)),
|
||||||
|
|
|
@ -14,6 +14,7 @@ Res = Literal[
|
||||||
"bill_accelerate",
|
"bill_accelerate",
|
||||||
"biography",
|
"biography",
|
||||||
"business_card",
|
"business_card",
|
||||||
|
"can_not_use_ope",
|
||||||
"choose_agent/battle_confirm",
|
"choose_agent/battle_confirm",
|
||||||
"choose_agent/battle_empty",
|
"choose_agent/battle_empty",
|
||||||
"choose_agent/battle_filter",
|
"choose_agent/battle_filter",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue