feat(task): 移除培育练习结束时的结束动画检测
因为 acquisitions() 函数中已经可以处理结束动画
This commit is contained in:
parent
8f2fb70b75
commit
3001416e22
|
@ -282,6 +282,8 @@ def acquisitions() -> AcquisitionType | None:
|
|||
# [screenshots/produce/in_produce/skill_card_enhance.png]
|
||||
# 3. 技能卡移除
|
||||
# [screenshots/produce/in_produce/skill_card_removal.png]
|
||||
# 4. 练习结束分数上升提示
|
||||
# [screenshots\produce\in_produce\practice_end.png]
|
||||
logger.debug("Check skill card events...")
|
||||
if image.find(R.InPurodyuusu.IconSkillCardEventBubble):
|
||||
device.click() # 不能 click_center,因为中间是技能卡
|
||||
|
|
|
@ -564,15 +564,7 @@ def practice():
|
|||
else:
|
||||
break_cd.reset()
|
||||
|
||||
# 结束动画
|
||||
logger.info("CLEAR/PERFECT not found. Practice finished.")
|
||||
(SimpleDispatcher('practice.end')
|
||||
.click(contains("上昇"), finish=True, log="Click to finish 上昇")
|
||||
.until(contains("審査基準"))
|
||||
# 弹出 P 饮料溢出对话框时,背景模糊,导致上面两个都检测不到
|
||||
.until(R.InPurodyuusu.TextPDrinkMax)
|
||||
.click('center')
|
||||
).run()
|
||||
|
||||
@action('执行考试')
|
||||
def exam(type: Literal['mid', 'final']):
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 988 KiB |
Loading…
Reference in New Issue