每日单抽修复

This commit is contained in:
zhbaor 2024-11-04 09:52:26 +08:00
parent 494b86f8ca
commit 70202640d0
2 changed files with 4 additions and 3 deletions

View file

@ -1,5 +1,6 @@
from datetime import timedelta
from mower.utils import config
from mower.utils.graph import SceneGraphSolver
from mower.utils.log import logger
from mower.utils.scene import Scene
@ -17,8 +18,9 @@ class Headhunting(SceneGraphSolver):
def transition(self) -> bool:
if (scene := self.scene()) == Scene.HEADHUNTING:
if self.find("sign_in/headhunting/available"):
self.tap_element("pull_once")
score, scope = config.recog.match("sign_in/headhunting/available")
if score >= 0.9:
self.tap(scope)
else:
notify("今日赠送单抽已抽完")
return True

View file

@ -117,7 +117,6 @@ color = {
"shop/trade_token_button": (15, 998),
"shop/trade_token_dialog": (717, 694),
"sign_in/banner": (129, 763),
"sign_in/headhunting/available": (1177, 857),
"sign_in/moon_festival/moon_cake": (1216, 503),
"sign_in/orundum/banner": (93, 814),
"sign_in/orundum/choose": (1590, 798),