fix(task): 修复进入竞赛时无法跳过赛季奖励
This commit is contained in:
parent
6e336d94f1
commit
8356fa1c52
Before Width: | Height: | Size: 711 KiB After Width: | Height: | Size: 711 KiB |
|
@ -0,0 +1 @@
|
|||
{"definitions":{"b4081250-d962-46ad-9257-03b68ea99a1e":{"name":"Daily.PointDissmissContestReward","displayName":"跳过竞赛赛季奖励动画","type":"hint-point","annotationId":"b4081250-d962-46ad-9257-03b68ea99a1e","useHintRect":false}},"annotations":[{"id":"b4081250-d962-46ad-9257-03b68ea99a1e","type":"point","data":{"x":604,"y":178}}]}
|
|
@ -2,10 +2,9 @@
|
|||
import logging
|
||||
from gettext import gettext as _
|
||||
|
||||
from kotonebot.backend.dispatch import SimpleDispatcher
|
||||
|
||||
from . import R
|
||||
from .common import conf
|
||||
from .game_ui import WhiteFilter
|
||||
from .actions.scenes import at_home, goto_home
|
||||
from .actions.loading import wait_loading_end
|
||||
from kotonebot import device, image, ocr, color, action, task, user, rect_expand, sleep, contains
|
||||
|
@ -28,9 +27,9 @@ def goto_contest() -> bool:
|
|||
device.click(btn_contest)
|
||||
if not has_ongoing_contest:
|
||||
while not image.find(R.Daily.ButtonContestRanking):
|
||||
# [screenshots/contest/acquire1.png]
|
||||
# [kotonebot-resource\sprites\jp\daily\screenshot_contest_season_reward.png]
|
||||
# [screenshots/contest/acquire2.png]
|
||||
device.click(0, 0)
|
||||
device.click(R.Daily.PointDissmissContestReward)
|
||||
sleep(1)
|
||||
# [screenshots/contest/main.png]
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue