剿灭代理合成玉数量为0时返回

This commit is contained in:
Elaina 2024-10-30 13:43:34 +08:00
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

Binary file not shown.

View file

@ -166,6 +166,9 @@ class OperationSolver(SceneGraphSolver):
return
self.tap_element("ope_start", interval=2)
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)
elif scene == Scene.UPGRADE:
self.tap((960, 540))

View file

@ -3,6 +3,7 @@ color = {
"1800": (158, 958),
"arrange_order_options": (1652, 23),
"arrange_order_options_scene": (369, 199),
"can_not_use_ope": (1653, 184),
"choose_agent/battle_confirm": ((1476, 991), (1591, 991)),
"choose_agent/clear": (685, 996),
"choose_agent/fast_select": ((1296, 25), (1592, 98)),

View file

@ -14,6 +14,7 @@ Res = Literal[
"bill_accelerate",
"biography",
"business_card",
"can_not_use_ope",
"choose_agent/battle_confirm",
"choose_agent/battle_empty",
"choose_agent/battle_filter",