感谢庆典前瞻签到

This commit is contained in:
zhbaor 2024-10-27 10:59:28 +08:00
parent d373b79aa5
commit 4ab497fff5
6 changed files with 19 additions and 19 deletions

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)

Binary file not shown.

View file

@ -8,6 +8,6 @@ from .sign_in import SignIn
class SignInSolver(SceneGraphSolver):
def run(self):
success = True
if datetime.now() < datetime(2024, 10, 8):
if datetime.now() < datetime(2024, 11, 5):
success = success and SignIn().run()
return success

View file

@ -11,7 +11,7 @@ from mower.utils.vector import sa
from .utils import notify
activity_name = "构想试炼"
activity_name = "感谢庆典前瞻"
class SignIn(SceneGraphSolver):
@ -29,7 +29,7 @@ class SignIn(SceneGraphSolver):
return True
elif (scene := self.scene()) == Scene.MATERIEL:
self.sleep()
notify(f"{activity_name}奖励领取")
notify(f"{activity_name}签到奖励领取")
self.tap((960, 960))
elif scene == Scene.INDEX:
score, scope = config.recog.match("sign_in/entry")
@ -42,7 +42,7 @@ class SignIn(SceneGraphSolver):
elif scene == Scene.SIGN_IN_DAILY:
top_left = 680, 500
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(
img, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE
)

View file

@ -100,7 +100,7 @@ color = {
"shop/token": (1097, 120),
"shop/trade_token_button": (15, 998),
"shop/trade_token_dialog": (717, 694),
"sign_in/banner": (205, 700),
"sign_in/banner": (52, 728),
"sign_in/moon_festival/moon_cake": (1216, 503),
"skip": (1803, 32),
"sss/accomplished": (634, 381),

View file

@ -30,15 +30,15 @@ Res = Literal[
"choose_agent/perfer_choosed",
"choose_agent/profession/ALL",
"choose_agent/profession/CASTER",
"choose_agent/profession/choose_arrow",
"choose_agent/profession/MEDIC",
"choose_agent/profession/PIONEER",
"choose_agent/profession/skill",
"choose_agent/profession/SNIPER",
"choose_agent/profession/SPECIAL",
"choose_agent/profession/SUPPORT",
"choose_agent/profession/TANK",
"choose_agent/profession/WARRIOR",
"choose_agent/profession/choose_arrow",
"choose_agent/profession/skill",
"choose_agent/rect",
"choose_agent/riic_empty",
"choose_agent/support_agent",
@ -310,6 +310,13 @@ Res = Literal[
"ope_start",
"open_recruitment",
"operator/CASTER",
"operator/MEDIC",
"operator/PIONEER",
"operator/SNIPER",
"operator/SPECIAL",
"operator/SUPPORT",
"operator/TANK",
"operator/WARRIOR",
"operator/elite0",
"operator/elite1",
"operator/elite2",
@ -319,9 +326,7 @@ Res = Literal[
"operator/mastery1",
"operator/mastery2",
"operator/mastery3",
"operator/MEDIC",
"operator/no_skill",
"operator/PIONEER",
"operator/potential0",
"operator/potential1",
"operator/potential2",
@ -329,12 +334,7 @@ Res = Literal[
"operator/potential4",
"operator/potential5",
"operator/skill_locked",
"operator/SNIPER",
"operator/SPECIAL",
"operator/SUPPORT",
"operator/TANK",
"operator/trust",
"operator/WARRIOR",
"order_label",
"order_ready",
"order_switching_notice",
@ -547,8 +547,8 @@ Res = Literal[
"sss/drop/近卫",
"sss/drop/重装",
"sss/drop",
"sss/drop_check",
"sss/drop_EC",
"sss/drop_check",
"sss/ec",
"sss/loading",
"sss/loading_ex",