感谢庆典前瞻签到
This commit is contained in:
parent
d373b79aa5
commit
4ab497fff5
6 changed files with 19 additions and 19 deletions
BIN
mower/resources/sign_in/banner.png
(Stored with Git LFS)
BIN
mower/resources/sign_in/banner.png
(Stored with Git LFS)
Binary file not shown.
BIN
mower/resources/sign_in/entry.png
(Stored with Git LFS)
BIN
mower/resources/sign_in/entry.png
(Stored with Git LFS)
Binary file not shown.
|
@ -8,6 +8,6 @@ from .sign_in import SignIn
|
||||||
class SignInSolver(SceneGraphSolver):
|
class SignInSolver(SceneGraphSolver):
|
||||||
def run(self):
|
def run(self):
|
||||||
success = True
|
success = True
|
||||||
if datetime.now() < datetime(2024, 10, 8):
|
if datetime.now() < datetime(2024, 11, 5):
|
||||||
success = success and SignIn().run()
|
success = success and SignIn().run()
|
||||||
return success
|
return success
|
||||||
|
|
|
@ -11,7 +11,7 @@ from mower.utils.vector import sa
|
||||||
|
|
||||||
from .utils import notify
|
from .utils import notify
|
||||||
|
|
||||||
activity_name = "构想试炼"
|
activity_name = "感谢庆典前瞻"
|
||||||
|
|
||||||
|
|
||||||
class SignIn(SceneGraphSolver):
|
class SignIn(SceneGraphSolver):
|
||||||
|
@ -29,7 +29,7 @@ class SignIn(SceneGraphSolver):
|
||||||
return True
|
return True
|
||||||
elif (scene := self.scene()) == Scene.MATERIEL:
|
elif (scene := self.scene()) == Scene.MATERIEL:
|
||||||
self.sleep()
|
self.sleep()
|
||||||
notify(f"{activity_name}奖励领取")
|
notify(f"{activity_name}签到奖励领取")
|
||||||
self.tap((960, 960))
|
self.tap((960, 960))
|
||||||
elif scene == Scene.INDEX:
|
elif scene == Scene.INDEX:
|
||||||
score, scope = config.recog.match("sign_in/entry")
|
score, scope = config.recog.match("sign_in/entry")
|
||||||
|
@ -42,7 +42,7 @@ class SignIn(SceneGraphSolver):
|
||||||
elif scene == Scene.SIGN_IN_DAILY:
|
elif scene == Scene.SIGN_IN_DAILY:
|
||||||
top_left = 680, 500
|
top_left = 680, 500
|
||||||
img = cropimg(config.recog.hsv, (top_left, (1800, 540)))
|
img = cropimg(config.recog.hsv, (top_left, (1800, 540)))
|
||||||
img = cv2.inRange(img, (120, 120, 230), (140, 255, 255))
|
img = cv2.inRange(img, (165, 200, 100), (180, 255, 255))
|
||||||
contours, _ = cv2.findContours(
|
contours, _ = cv2.findContours(
|
||||||
img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE
|
img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE
|
||||||
)
|
)
|
||||||
|
|
|
@ -100,7 +100,7 @@ color = {
|
||||||
"shop/token": (1097, 120),
|
"shop/token": (1097, 120),
|
||||||
"shop/trade_token_button": (15, 998),
|
"shop/trade_token_button": (15, 998),
|
||||||
"shop/trade_token_dialog": (717, 694),
|
"shop/trade_token_dialog": (717, 694),
|
||||||
"sign_in/banner": (205, 700),
|
"sign_in/banner": (52, 728),
|
||||||
"sign_in/moon_festival/moon_cake": (1216, 503),
|
"sign_in/moon_festival/moon_cake": (1216, 503),
|
||||||
"skip": (1803, 32),
|
"skip": (1803, 32),
|
||||||
"sss/accomplished": (634, 381),
|
"sss/accomplished": (634, 381),
|
||||||
|
|
|
@ -30,15 +30,15 @@ Res = Literal[
|
||||||
"choose_agent/perfer_choosed",
|
"choose_agent/perfer_choosed",
|
||||||
"choose_agent/profession/ALL",
|
"choose_agent/profession/ALL",
|
||||||
"choose_agent/profession/CASTER",
|
"choose_agent/profession/CASTER",
|
||||||
"choose_agent/profession/choose_arrow",
|
|
||||||
"choose_agent/profession/MEDIC",
|
"choose_agent/profession/MEDIC",
|
||||||
"choose_agent/profession/PIONEER",
|
"choose_agent/profession/PIONEER",
|
||||||
"choose_agent/profession/skill",
|
|
||||||
"choose_agent/profession/SNIPER",
|
"choose_agent/profession/SNIPER",
|
||||||
"choose_agent/profession/SPECIAL",
|
"choose_agent/profession/SPECIAL",
|
||||||
"choose_agent/profession/SUPPORT",
|
"choose_agent/profession/SUPPORT",
|
||||||
"choose_agent/profession/TANK",
|
"choose_agent/profession/TANK",
|
||||||
"choose_agent/profession/WARRIOR",
|
"choose_agent/profession/WARRIOR",
|
||||||
|
"choose_agent/profession/choose_arrow",
|
||||||
|
"choose_agent/profession/skill",
|
||||||
"choose_agent/rect",
|
"choose_agent/rect",
|
||||||
"choose_agent/riic_empty",
|
"choose_agent/riic_empty",
|
||||||
"choose_agent/support_agent",
|
"choose_agent/support_agent",
|
||||||
|
@ -310,6 +310,13 @@ Res = Literal[
|
||||||
"ope_start",
|
"ope_start",
|
||||||
"open_recruitment",
|
"open_recruitment",
|
||||||
"operator/CASTER",
|
"operator/CASTER",
|
||||||
|
"operator/MEDIC",
|
||||||
|
"operator/PIONEER",
|
||||||
|
"operator/SNIPER",
|
||||||
|
"operator/SPECIAL",
|
||||||
|
"operator/SUPPORT",
|
||||||
|
"operator/TANK",
|
||||||
|
"operator/WARRIOR",
|
||||||
"operator/elite0",
|
"operator/elite0",
|
||||||
"operator/elite1",
|
"operator/elite1",
|
||||||
"operator/elite2",
|
"operator/elite2",
|
||||||
|
@ -319,9 +326,7 @@ Res = Literal[
|
||||||
"operator/mastery1",
|
"operator/mastery1",
|
||||||
"operator/mastery2",
|
"operator/mastery2",
|
||||||
"operator/mastery3",
|
"operator/mastery3",
|
||||||
"operator/MEDIC",
|
|
||||||
"operator/no_skill",
|
"operator/no_skill",
|
||||||
"operator/PIONEER",
|
|
||||||
"operator/potential0",
|
"operator/potential0",
|
||||||
"operator/potential1",
|
"operator/potential1",
|
||||||
"operator/potential2",
|
"operator/potential2",
|
||||||
|
@ -329,12 +334,7 @@ Res = Literal[
|
||||||
"operator/potential4",
|
"operator/potential4",
|
||||||
"operator/potential5",
|
"operator/potential5",
|
||||||
"operator/skill_locked",
|
"operator/skill_locked",
|
||||||
"operator/SNIPER",
|
|
||||||
"operator/SPECIAL",
|
|
||||||
"operator/SUPPORT",
|
|
||||||
"operator/TANK",
|
|
||||||
"operator/trust",
|
"operator/trust",
|
||||||
"operator/WARRIOR",
|
|
||||||
"order_label",
|
"order_label",
|
||||||
"order_ready",
|
"order_ready",
|
||||||
"order_switching_notice",
|
"order_switching_notice",
|
||||||
|
@ -547,8 +547,8 @@ Res = Literal[
|
||||||
"sss/drop/近卫",
|
"sss/drop/近卫",
|
||||||
"sss/drop/重装",
|
"sss/drop/重装",
|
||||||
"sss/drop",
|
"sss/drop",
|
||||||
"sss/drop_check",
|
|
||||||
"sss/drop_EC",
|
"sss/drop_EC",
|
||||||
|
"sss/drop_check",
|
||||||
"sss/ec",
|
"sss/ec",
|
||||||
"sss/loading",
|
"sss/loading",
|
||||||
"sss/loading_ex",
|
"sss/loading_ex",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue