This commit is contained in:
parent
01c0ce7944
commit
b68a2ae360
2 changed files with 4 additions and 2 deletions
|
@ -18,7 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from mower.utils import config
|
|
||||||
from mower.utils.email import notify
|
from mower.utils.email import notify
|
||||||
from mower.utils.graph import SceneGraphSolver
|
from mower.utils.graph import SceneGraphSolver
|
||||||
from mower.utils.scene import Scene
|
from mower.utils.scene import Scene
|
||||||
|
@ -30,7 +29,9 @@ class Headhunting(SceneGraphSolver):
|
||||||
|
|
||||||
def transition(self) -> bool:
|
def transition(self) -> bool:
|
||||||
if (scene := self.scene()) == Scene.HEADHUNTING:
|
if (scene := self.scene()) == Scene.HEADHUNTING:
|
||||||
if config.recog.match("sign_in/headhunting/available")[0] >= 0.9:
|
if self.animation():
|
||||||
|
return
|
||||||
|
if self.find("sign_in/headhunting/available"):
|
||||||
self.tap("pull_once")
|
self.tap("pull_once")
|
||||||
else:
|
else:
|
||||||
notify("今日赠送单抽已抽完")
|
notify("今日赠送单抽已抽完")
|
||||||
|
|
|
@ -378,6 +378,7 @@ template_matching = {
|
||||||
"rogue/refresh": ((1205, 200), (1256, 350)),
|
"rogue/refresh": ((1205, 200), (1256, 350)),
|
||||||
"rogue/team_check_to_do": ((0, 800), (1920, 960)),
|
"rogue/team_check_to_do": ((0, 800), (1920, 960)),
|
||||||
"rogue/view_data_back": (147, 46),
|
"rogue/view_data_back": (147, 46),
|
||||||
|
"sign_in/headhunting/available": (1177, 857),
|
||||||
"sign_in/moon_festival/banner": (704, 92),
|
"sign_in/moon_festival/banner": (704, 92),
|
||||||
"sss/abandon": ((0, 504), (289, 564)),
|
"sss/abandon": ((0, 504), (289, 564)),
|
||||||
"sss/accomplished": (640, 381),
|
"sss/accomplished": (640, 381),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue